Mercurial > hg > easyhg
comparison src/workstatuswidget.cpp @ 522:43ddfa5e9fd0
Word-wrap these labels
author | Chris Cannam |
---|---|
date | Tue, 15 Nov 2011 14:47:19 +0000 |
parents | a206deb6c1aa |
children | d869e6a18f63 |
comparison
equal
deleted
inserted
replaced
521:b5a342a71218 | 522:43ddfa5e9fd0 |
---|---|
45 m_openButton = new ClickableLabel; | 45 m_openButton = new ClickableLabel; |
46 QFont f(m_openButton->font()); | 46 QFont f(m_openButton->font()); |
47 f.setBold(true); | 47 f.setBold(true); |
48 m_openButton->setFont(f); | 48 m_openButton->setFont(f); |
49 m_openButton->setMouseUnderline(true); | 49 m_openButton->setMouseUnderline(true); |
50 m_openButton->setWordWrap(true); | |
50 connect(m_openButton, SIGNAL(clicked()), this, SLOT(openButtonClicked())); | 51 connect(m_openButton, SIGNAL(clicked()), this, SLOT(openButtonClicked())); |
51 layout->addWidget(m_openButton, row, 2, 1, 2, Qt::AlignLeft); | 52 layout->addWidget(m_openButton, row, 2, 1, 2, Qt::AlignLeft); |
52 | 53 |
53 ++row; | 54 ++row; |
54 layout->addWidget(new QLabel(tr("Remote:")), row, 1); | 55 layout->addWidget(new QLabel(tr("Remote:")), row, 1); |
55 m_remoteURLLabel = new QLabel; | 56 m_remoteURLLabel = new QLabel; |
56 m_remoteURLLabel->setTextInteractionFlags(Qt::TextSelectableByMouse); | 57 m_remoteURLLabel->setTextInteractionFlags(Qt::TextSelectableByMouse); |
58 m_remoteURLLabel->setWordWrap(true); | |
57 layout->addWidget(m_remoteURLLabel, row, 2, 1, 2); | 59 layout->addWidget(m_remoteURLLabel, row, 2, 1, 2); |
58 | 60 |
59 ++row; | 61 ++row; |
60 layout->addWidget(new QLabel(tr("State:")), row, 1); | 62 layout->addWidget(new QLabel(tr("State:")), row, 1); |
61 m_stateLabel = new QLabel; | 63 m_stateLabel = new QLabel; |