diff options
| author | 2011-03-18 17:40:39 -0400 | |
|---|---|---|
| committer | 2011-03-18 17:40:39 -0400 | |
| commit | 615452d99e9c759dec1416496a24aff24a4e3287 (patch) | |
| tree | 1b58df2b48090adaec3ed576d2ca26450b0d8f8c /Introduction.cpp | |
| parent | Use CSS everywhere. (diff) | |
| download | Author-615452d99e9c759dec1416496a24aff24a4e3287.tar.xz Author-615452d99e9c759dec1416496a24aff24a4e3287.zip | |
Revert "Use CSS everywhere."
This reverts commit 0f16ff1fe6c0af3e9046cdbae6a1eb33f568326a.
Diffstat (limited to 'Introduction.cpp')
| -rw-r--r-- | Introduction.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Introduction.cpp b/Introduction.cpp index 9adeaf0..c6f7e3f 100644 --- a/Introduction.cpp +++ b/Introduction.cpp @@ -21,12 +21,16 @@ Introduction::Introduction(QWidget *parent) : instructions->setWordWrap(true); newCompositionBoxLayout->addWidget(instructions); newCompositionBoxLayout->addStretch(); + QFont font; + font.setPointSize(16); + font.setBold(true); m_title = new QLineEdit(defaultName()); - m_title->setStyleSheet(QLatin1String("font-size: 16pt; font-weight: bold;")); + m_title->setFont(font); m_title->setAlignment(Qt::AlignCenter); newCompositionBoxLayout->addWidget(m_title); QPushButton *okay = new QPushButton(tr("Wonderful, let's begin!")); - okay->setStyleSheet(QLatin1String("font-size: 18pt; font-weight: bold;")); + font.setPointSize(18); + okay->setFont(font); connect(okay, SIGNAL(clicked()), this, SLOT(accept())); newCompositionBoxLayout->addWidget(okay); newCompositionBox->setLayout(newCompositionBoxLayout); @@ -43,7 +47,7 @@ Introduction::Introduction(QWidget *parent) : } foreach (const QString &title, sorter.values()) { QPushButton *titleButton = new QPushButton(title); - titleButton->setStyleSheet(QLatin1String("font-size: 18pt; font-weight: bold;")); + titleButton->setFont(font); connect(titleButton, SIGNAL(clicked()), this, SLOT(loadExisting())); existingCompositionBoxLayout->insertWidget(0, titleButton); } |
