changeset 101:f9af5e93de0e

* Layout fix
author Chris Cannam
date Wed, 24 Nov 2010 19:57:30 +0000
parents 0dc7305acbc8
children f70ccc15c9d0
files filestatuswidget.cpp
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/filestatuswidget.cpp	Wed Nov 24 19:53:36 2010 +0000
+++ b/filestatuswidget.cpp	Wed Nov 24 19:57:30 2010 +0000
@@ -72,8 +72,6 @@
     for (int i = int(FileStates::FirstState);
              i <= int(FileStates::LastState); ++i) {
 
-        layout->addItem(new QSpacerItem(5, 8), ++row, 0);
-
         FileStates::State s = FileStates::State(i);
 
         QWidget *box = new QWidget;
@@ -81,12 +79,14 @@
         boxlayout->setMargin(0);
         box->setLayout(boxlayout);
 
-        boxlayout->addWidget(new QLabel(labelFor(s)), 0, 0);
+        boxlayout->addItem(new QSpacerItem(5, 8), 0, 0);
+
+        boxlayout->addWidget(new QLabel(labelFor(s)), 1, 0);
 
         QListWidget *w = new QListWidget;
         m_stateListMap[s] = w;
         w->setSelectionMode(QListWidget::ExtendedSelection);
-        boxlayout->addWidget(w, 1, 0);
+        boxlayout->addWidget(w, 2, 0);
 
         connect(w, SIGNAL(itemSelectionChanged()),
                 this, SLOT(itemSelectionChanged()));