diff options
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); } |
