diff options
Diffstat (limited to 'src-qt5/desktop-utils')
-rw-r--r-- | src-qt5/desktop-utils/lumina-textedit/MainUI.cpp | 2 | ||||
-rw-r--r-- | src-qt5/desktop-utils/lumina-textedit/MainUI.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp b/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp index 298fedde..f01119c6 100644 --- a/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp +++ b/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp @@ -84,8 +84,10 @@ MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI){ ui->groupReplace->setVisible(false); nextTabS = new QShortcut(QKeySequence(QKeySequence::Forward), this); prevTabS = new QShortcut(QKeySequence(QKeySequence::Back), this); + closeTabS = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_F4), this); connect(nextTabS, SIGNAL(activated()), this, SLOT(nextTab()) ); connect(prevTabS, SIGNAL(activated()), this, SLOT(prevTab()) ); + connect(closeTabS, SIGNAL(activated()), this, SLOT(CloseFile()) ); //Update the menu of available syntax highlighting modes QStringList smodes = Custom_Syntax::availableRules(settings); diff --git a/src-qt5/desktop-utils/lumina-textedit/MainUI.h b/src-qt5/desktop-utils/lumina-textedit/MainUI.h index 38a742dd..2c6082cf 100644 --- a/src-qt5/desktop-utils/lumina-textedit/MainUI.h +++ b/src-qt5/desktop-utils/lumina-textedit/MainUI.h @@ -43,7 +43,7 @@ private: QFontComboBox *fontbox; ColorDialog *colorDLG; QSettings *settings; - QShortcut *closeFindS, *nextTabS, *prevTabS; + QShortcut *closeFindS, *nextTabS, *prevTabS, *closeTabS; QSpinBox *fontSizes; QAction *label_readonly; //Hunspell *hunspell; |