MCPcopy Create free account
hub / github.com/cxasm/notepad-- / on_quitActiveWindow

Method on_quitActiveWindow

src/cceditor/ccnotepad.cpp:9768–9786  ·  view source on GitHub ↗

处理当前按下ESC后,需要处理退出的事件

Source from the content-addressed store, hash-verified

9766
9767//处理当前按下ESC后,需要处理退出的事件
9768void 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下有不开启深色的配置

Callers 1

keyPressEventMethod · 0.80

Calls 1

closeMethod · 0.80

Tested by

no test coverage detected