Mercurial > hg > easyhg
comparison 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 |
comparison
equal
deleted
inserted
replaced
296:d40294e164da | 297:e4284fab6962 |
---|---|
27 | 27 |
28 WorkStatusWidget::WorkStatusWidget(QWidget *parent) : | 28 WorkStatusWidget::WorkStatusWidget(QWidget *parent) : |
29 QWidget(parent) | 29 QWidget(parent) |
30 { | 30 { |
31 QGridLayout *layout = new QGridLayout; | 31 QGridLayout *layout = new QGridLayout; |
32 layout->setMargin(10); | 32 layout->setMargin(6); |
33 layout->setSpacing(6); | |
33 setLayout(layout); | 34 setLayout(layout); |
34 | 35 |
35 int row = 0; | 36 int row = 0; |
36 | 37 |
37 #ifndef Q_OS_MAC | 38 #ifndef Q_OS_MAC |
38 layout->addItem(new QSpacerItem(1, 1), row, 0); | 39 layout->addItem(new QSpacerItem(1, 1), row, 0); |
39 ++row; | 40 ++row; |
40 #endif | 41 #endif |
41 | 42 |
42 layout->addWidget(new QLabel(tr("Local:")), row, 0); | 43 layout->addWidget(new QLabel(tr("Local:")), row, 1); |
43 | 44 |
44 m_openButton = new ClickableLabel; | 45 m_openButton = new ClickableLabel; |
45 QFont f(m_openButton->font()); | 46 QFont f(m_openButton->font()); |
46 f.setBold(true); | 47 f.setBold(true); |
47 m_openButton->setFont(f); | 48 m_openButton->setFont(f); |
48 m_openButton->setMouseUnderline(true); | 49 m_openButton->setMouseUnderline(true); |
49 connect(m_openButton, SIGNAL(clicked()), this, SLOT(openButtonClicked())); | 50 connect(m_openButton, SIGNAL(clicked()), this, SLOT(openButtonClicked())); |
50 layout->addWidget(m_openButton, row, 1, 1, 2, Qt::AlignLeft); | 51 layout->addWidget(m_openButton, row, 2, 1, 2, Qt::AlignLeft); |
51 | 52 |
52 ++row; | 53 ++row; |
53 layout->addWidget(new QLabel(tr("Remote:")), row, 0); | 54 layout->addWidget(new QLabel(tr("Remote:")), row, 1); |
54 m_remoteURLLabel = new QLabel; | 55 m_remoteURLLabel = new QLabel; |
55 layout->addWidget(m_remoteURLLabel, row, 1, 1, 2); | 56 layout->addWidget(m_remoteURLLabel, row, 2, 1, 2); |
56 | 57 |
57 ++row; | 58 ++row; |
58 layout->addWidget(new QLabel(tr("State:")), row, 0); | 59 layout->addWidget(new QLabel(tr("State:")), row, 1); |
59 m_stateLabel = new QLabel; | 60 m_stateLabel = new QLabel; |
60 layout->addWidget(m_stateLabel, row, 1, 1, 2); | 61 layout->addWidget(m_stateLabel, row, 2, 1, 2); |
61 | 62 |
62 layout->setColumnStretch(1, 20); | 63 layout->setColumnStretch(2, 20); |
63 | 64 |
64 | 65 |
65 } | 66 } |
66 | 67 |
67 WorkStatusWidget::~WorkStatusWidget() | 68 WorkStatusWidget::~WorkStatusWidget() |