summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-02-05 13:35:55 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-02-05 13:37:13 (GMT)
commit662f94d478063f05155e3d2345aa6617f602ef38 (patch)
tree1a0895e8ebb976863a56b3c5905e90bb60072028 /tools
parentb0e4af35ec8ddb5e7bfa658f916fbf29caa5a550 (diff)
downloadQt-662f94d478063f05155e3d2345aa6617f602ef38.zip
Qt-662f94d478063f05155e3d2345aa6617f602ef38.tar.gz
Qt-662f94d478063f05155e3d2345aa6617f602ef38.tar.bz2
don't use stylesheet for just making labels bold
Diffstat (limited to 'tools')
-rw-r--r--tools/linguist/linguist/messageeditor.cpp4
-rw-r--r--tools/linguist/linguist/messageeditorwidgets.cpp6
2 files changed, 6 insertions, 4 deletions
diff --git a/tools/linguist/linguist/messageeditor.cpp b/tools/linguist/linguist/messageeditor.cpp
index 4aeac89..b6c1688 100644
--- a/tools/linguist/linguist/messageeditor.cpp
+++ b/tools/linguist/linguist/messageeditor.cpp
@@ -135,10 +135,6 @@ MessageEditor::MessageEditor(MultiDataModel *dataModel, QMainWindow *parent)
void MessageEditor::setupEditorPage()
{
QFrame *editorPage = new QFrame;
-
- editorPage->setStyleSheet(QLatin1String(
- "QLabel { font-weight: bold; }"
- ));
editorPage->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed));
m_source = new FormWidget(tr("Source text"), false);
diff --git a/tools/linguist/linguist/messageeditorwidgets.cpp b/tools/linguist/linguist/messageeditorwidgets.cpp
index 8b4fa62..4d31db2 100644
--- a/tools/linguist/linguist/messageeditorwidgets.cpp
+++ b/tools/linguist/linguist/messageeditorwidgets.cpp
@@ -171,6 +171,9 @@ FormWidget::FormWidget(const QString &label, bool isEditable, QWidget *parent)
layout->setMargin(0);
m_label = new QLabel(this);
+ QFont fnt;
+ fnt.setBold(true);
+ m_label->setFont(fnt);
m_label->setText(label);
layout->addWidget(m_label);
@@ -249,6 +252,9 @@ FormMultiWidget::FormMultiWidget(const QString &label, QWidget *parent)
m_minusIcon(QIcon(QLatin1String(":/images/minus.png")))
{
m_label = new QLabel(this);
+ QFont fnt;
+ fnt.setBold(true);
+ m_label->setFont(fnt);
m_label->setText(label);
m_plusButtons.append(