处理当前按下ESC后,需要处理退出的事件
| 9766 | |
| 9767 | //处理当前按下ESC后,需要处理退出的事件 |
| 9768 | void CCNotePad::on_quitActiveWindow() |
| 9769 | { |
| 9770 | if (!m_pFindWin.isNull()&& m_pFindWin->isVisible()) |
| 9771 | { |
| 9772 | m_pFindWin->close(); |
| 9773 | } |
| 9774 | if (!m_columnEditWin.isNull() && m_columnEditWin->isVisible()) |
| 9775 | { |
| 9776 | m_columnEditWin->close(); |
| 9777 | } |
| 9778 | if (!m_langSetWin.isNull() && m_langSetWin->isVisible()) |
| 9779 | { |
| 9780 | m_langSetWin->close(); |
| 9781 | } |
| 9782 | if (!m_optionsView.isNull() && m_optionsView->isVisible()) |
| 9783 | { |
| 9784 | m_optionsView->close(); |
| 9785 | } |
| 9786 | } |
| 9787 | |
| 9788 | #if 0 |
| 9789 | //修改主题颜色//暂时不开始,发现MAC下有不开启深色的配置 |