在文件列表类中使用,关闭pEdit所在的编辑器
| 5126 | |
| 5127 | //在文件列表类中使用,关闭pEdit所在的编辑器 |
| 5128 | bool CCNotePad::closeFileByEditWidget(QWidget* pEdit) |
| 5129 | { |
| 5130 | int index = ui.editTabWidget->indexOf(pEdit); |
| 5131 | if (index != -1) |
| 5132 | { |
| 5133 | slot_tabClose(index); |
| 5134 | return true; |
| 5135 | } |
| 5136 | return false; |
| 5137 | } |
| 5138 | |
| 5139 | void CCNotePad::initFileListDockWin() |
| 5140 | { |