diff options
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit/MainUI.cpp')
-rw-r--r-- | src-qt5/desktop-utils/lumina-textedit/MainUI.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp b/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp index aacb0424..1dd8cd2f 100644 --- a/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp +++ b/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp @@ -159,6 +159,7 @@ void MainUI::OpenFile(QString file){ PlainTextEditor *edit = new PlainTextEditor(settings, this); connect(edit, SIGNAL(FileLoaded(QString)), this, SLOT(updateTab(QString)) ); connect(edit, SIGNAL(UnsavedChanges(QString)), this, SLOT(updateTab(QString)) ); + connect(edit, SIGNAL(statusTipChanged()), this, SLOT(updateStatusTip()) ); ui->tabWidget->addTab(edit, files[i].section("/",-1)); edit->showLineNumbers(ui->actionLine_Numbers->isChecked()); edit->setLineWrapMode( ui->actionWrap_Lines->isChecked() ? QPlainTextEdit::WidgetWidth : QPlainTextEdit::NoWrap); @@ -194,6 +195,12 @@ void MainUI::fontChanged(const QFont &font){ QApplication::setFont(font, "PlainTextEditor"); } +void MainUI::updateStatusTip(){ + QString msg = currentEditor()->statusTip(); + //ui->statusbar->clearMessage(); + ui->statusbar->showMessage(msg); +} + void MainUI::UpdateHighlighting(QAction *act){ if(act!=0){ //Single-editor change |