Improve GUI layout.
authorMartin Lambers <marlam@marlam.de>
Fri, 12 Feb 2016 15:27:40 +0000 (16:27 +0100)
committerMartin Lambers <marlam@marlam.de>
Fri, 12 Feb 2016 15:27:40 +0000 (16:27 +0100)
gui.cpp
gui.hpp

diff --git a/gui.cpp b/gui.cpp
index 0acd6b2..78763b8 100644 (file)
--- a/gui.cpp
+++ b/gui.cpp
@@ -99,20 +99,20 @@ GUI::GUI()
     _category_widget->addTab(_category_qual_widget, "Qualitative");
     connect(_category_widget, SIGNAL(currentChanged(int)), this, SLOT(update()));
     layout->addWidget(_category_widget, 0, 0);
-    _clipped_label = new QLabel("");
-    layout->addWidget(_clipped_label, 1, 0);
-    layout->addItem(new QSpacerItem(0, 0), 2, 0);
     _reference_label = new QLabel(_brewerseq_widget->reference());
     _reference_label->setWordWrap(true);
     _reference_label->setOpenExternalLinks(true);
-    layout->addWidget(_reference_label, 3, 0);
+    layout->addWidget(_reference_label, 1, 0);
+    layout->addItem(new QSpacerItem(0, 0), 2, 0);
+    _clipped_label = new QLabel("");
+    layout->addWidget(_clipped_label, 3, 0);
 
     _colormap_label = new QLabel();
     _colormap_label->setScaledContents(true);
     layout->addWidget(_colormap_label, 0, 1, 4, 1);
 
     layout->setColumnStretch(0, 1);
-    layout->setRowStretch(1, 1);
+    layout->setRowStretch(2, 1);
     widget->setLayout(layout);
     setCentralWidget(widget);
 
diff --git a/gui.hpp b/gui.hpp
index 1b33b9f..c40ac76 100644 (file)
--- a/gui.hpp
+++ b/gui.hpp
@@ -70,8 +70,8 @@ private:
     QTabWidget* _category_seq_widget;
     QTabWidget* _category_div_widget;
     QTabWidget* _category_qual_widget;
-    QLabel* _clipped_label;
     QLabel* _reference_label;
+    QLabel* _clipped_label;
     QLabel* _colormap_label;
 
     ColorMapWidget* currentWidget();