diff options
author | Ken Moore <ken@ixsystems.com> | 2017-06-09 15:36:59 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-06-09 15:36:59 -0400 |
commit | 73852660c61f618215da594d3fca6a81d4d62a4a (patch) | |
tree | 10ebfbb9fcd165f84600222954075381136c0604 /src-qt5/desktop-utils/lumina-textedit/MainUI.cpp | |
parent | Clean up the loading/changing of font family/size (still need to update the f... (diff) | |
download | lumina-73852660c61f618215da594d3fca6a81d4d62a4a.tar.gz lumina-73852660c61f618215da594d3fca6a81d4d62a4a.tar.bz2 lumina-73852660c61f618215da594d3fca6a81d4d62a4a.zip |
Finish getting the font/size information in-sync with the current tab.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit/MainUI.cpp')
-rw-r--r-- | src-qt5/desktop-utils/lumina-textedit/MainUI.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp b/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp index e6c523ee..145c7c7e 100644 --- a/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp +++ b/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp @@ -347,6 +347,10 @@ void MainUI::tabChanged(){ //this->setWindowTitle( tabWidget->tabText( tabWidget->currentIndex() ) ); this->setWindowTitle( (changes ? "*" : "") + tabWidget->tabToolTip( tabWidget->currentIndex() ).section("/",-2) ); if(!ui->line_find->hasFocus() && !ui->line_replace->hasFocus()){ tabWidget->currentWidget()->setFocus(); } + QFont font = cur->document()->defaultFont(); + //Update the font/size widgets to reflect what is set on this tab + fontbox->setCurrentFont(font); + fontSizes->setValue( font.pointSize() ); } void MainUI::tabClosed(int tab){ |