diff workstatuswidget.cpp @ 297:e4284fab6962 status_outside_tabs

Minor layout updates
author Chris Cannam
date Tue, 22 Feb 2011 13:12:16 +0000
parents bc39f2e28da8
children
line wrap: on
line diff
--- a/workstatuswidget.cpp	Tue Feb 22 13:03:03 2011 +0000
+++ b/workstatuswidget.cpp	Tue Feb 22 13:12:16 2011 +0000
@@ -29,7 +29,8 @@
     QWidget(parent)
 {
     QGridLayout *layout = new QGridLayout;
-    layout->setMargin(10);
+    layout->setMargin(6);
+    layout->setSpacing(6);
     setLayout(layout);
 
     int row = 0;
@@ -39,7 +40,7 @@
     ++row;
 #endif
 
-    layout->addWidget(new QLabel(tr("Local:")), row, 0);
+    layout->addWidget(new QLabel(tr("Local:")), row, 1);
 
     m_openButton = new ClickableLabel;
     QFont f(m_openButton->font());
@@ -47,19 +48,19 @@
     m_openButton->setFont(f);
     m_openButton->setMouseUnderline(true);
     connect(m_openButton, SIGNAL(clicked()), this, SLOT(openButtonClicked()));
-    layout->addWidget(m_openButton, row, 1, 1, 2, Qt::AlignLeft);
+    layout->addWidget(m_openButton, row, 2, 1, 2, Qt::AlignLeft);
 
     ++row;
-    layout->addWidget(new QLabel(tr("Remote:")), row, 0);
+    layout->addWidget(new QLabel(tr("Remote:")), row, 1);
     m_remoteURLLabel = new QLabel;
-    layout->addWidget(m_remoteURLLabel, row, 1, 1, 2);
+    layout->addWidget(m_remoteURLLabel, row, 2, 1, 2);
 
     ++row;
-    layout->addWidget(new QLabel(tr("State:")), row, 0);
+    layout->addWidget(new QLabel(tr("State:")), row, 1);
     m_stateLabel = new QLabel;
-    layout->addWidget(m_stateLabel, row, 1, 1, 2);
+    layout->addWidget(m_stateLabel, row, 2, 1, 2);
 
-    layout->setColumnStretch(1, 20);
+    layout->setColumnStretch(2, 20);
 
 
 }