diff options
author | Ken Moore <ken@ixsystems.com> | 2017-04-07 10:33:05 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-04-07 10:33:05 -0400 |
commit | bd78540b2eedef806e69e50b7772f22f3f1f729f (patch) | |
tree | f30648f8667dd9437969bb7984fcc0a4fc08dafe /src-qt5/desktop-utils/lumina-textedit/MainUI.cpp | |
parent | Finish up the drag and drop support for tabs within LTE: (diff) | |
download | lumina-bd78540b2eedef806e69e50b7772f22f3f1f729f.tar.gz lumina-bd78540b2eedef806e69e50b7772f22f3f1f729f.tar.bz2 lumina-bd78540b2eedef806e69e50b7772f22f3f1f729f.zip |
Fix the 2-pixel height difference between the font/size boxes manually.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit/MainUI.cpp')
-rw-r--r-- | src-qt5/desktop-utils/lumina-textedit/MainUI.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp b/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp index a44e16bb..1aed7407 100644 --- a/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp +++ b/src-qt5/desktop-utils/lumina-textedit/MainUI.cpp @@ -29,7 +29,11 @@ MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI){ fontSizes = new QSpinBox(this); fontSizes->setRange(5, 72); fontSizes->setValue(9); - fontSizes->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); + fontSizes->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); + //For some reason, the FontComboBox is always 2 pixels taller than the SpinBox - manually fix that here + fontbox->setFixedHeight(30); + fontSizes->setFixedHeight(32); + ui->toolBar->addWidget(spacer); ui->toolBar->addWidget(fontbox); ui->toolBar->addWidget(fontSizes); |