diff src/workstatuswidget.cpp @ 523:d869e6a18f63

Make the text labels in the work status area squeezable for small window sizes. Fixes #329
author Chris Cannam
date Tue, 15 Nov 2011 16:02:18 +0000
parents 43ddfa5e9fd0
children 533519ebc0cb
line wrap: on
line diff
--- a/src/workstatuswidget.cpp	Tue Nov 15 14:47:19 2011 +0000
+++ b/src/workstatuswidget.cpp	Tue Nov 15 16:02:18 2011 +0000
@@ -18,6 +18,7 @@
 #include "workstatuswidget.h"
 #include "debug.h"
 #include "clickablelabel.h"
+#include "squeezedlabel.h"
 
 #include <QGridLayout>
 #include <QSpacerItem>
@@ -47,15 +48,13 @@
     f.setBold(true);
     m_openButton->setFont(f);
     m_openButton->setMouseUnderline(true);
-    m_openButton->setWordWrap(true);
     connect(m_openButton, SIGNAL(clicked()), this, SLOT(openButtonClicked()));
-    layout->addWidget(m_openButton, row, 2, 1, 2, Qt::AlignLeft);
+    layout->addWidget(m_openButton, row, 2, 1, 2);
 
     ++row;
     layout->addWidget(new QLabel(tr("Remote:")), row, 1);
-    m_remoteURLLabel = new QLabel;
+    m_remoteURLLabel = new SqueezedLabel;
     m_remoteURLLabel->setTextInteractionFlags(Qt::TextSelectableByMouse);
-    m_remoteURLLabel->setWordWrap(true);
     layout->addWidget(m_remoteURLLabel, row, 2, 1, 2);
 
     ++row;