aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-04-07 10:33:05 -0400
committerKen Moore <ken@ixsystems.com>2017-04-07 10:33:05 -0400
commitbd78540b2eedef806e69e50b7772f22f3f1f729f (patch)
treef30648f8667dd9437969bb7984fcc0a4fc08dafe
parentFinish up the drag and drop support for tabs within LTE: (diff)
downloadlumina-bd78540b2eedef806e69e50b7772f22f3f1f729f.tar.gz
lumina-bd78540b2eedef806e69e50b7772f22f3f1f729f.tar.bz2
lumina-bd78540b2eedef806e69e50b7772f22f3f1f729f.zip
Fix the 2-pixel height difference between the font/size boxes manually.
-rw-r--r--src-qt5/desktop-utils/lumina-textedit/MainUI.cpp6
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);
bgstack15