diff options
| author | 2011-03-19 01:53:23 -0400 | |
|---|---|---|
| committer | 2011-03-19 01:53:23 -0400 | |
| commit | b582d29fd06fc846f0b6925d2ddf0fdf6e35913f (patch) | |
| tree | bd693e7b44fe8c5469ec7e482f8d3dd4774d9c28 /CompositionButton.cpp | |
| parent | Prettier intro buttons. (diff) | |
| download | Author-b582d29fd06fc846f0b6925d2ddf0fdf6e35913f.tar.xz Author-b582d29fd06fc846f0b6925d2ddf0fdf6e35913f.zip | |
Fix styles.
Diffstat (limited to 'CompositionButton.cpp')
| -rw-r--r-- | CompositionButton.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/CompositionButton.cpp b/CompositionButton.cpp index 4d4dfa7..43a9b71 100644 --- a/CompositionButton.cpp +++ b/CompositionButton.cpp @@ -13,13 +13,13 @@ CompositionButton::CompositionButton(const QString &title, const QDateTime &date setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); QGridLayout *layout = new QGridLayout; m_arrow = new QLabel(QLatin1String(">")); - m_arrow->setStyleSheet(QLatin1String("color: gray")); + m_arrow->setStyleSheet(QLatin1String("color: gray; font-family: \"CMU Typewriter Text Variable Width\"")); layout->addWidget(m_arrow, 0, 0, 2, 1, Qt::AlignVCenter); QLabel *titleLabel = new QLabel(title); - titleLabel->setStyleSheet(QLatin1String("color: black; font-weight: bold")); + titleLabel->setStyleSheet(QLatin1String("color: black; font-weight: bold; font-family: \"CMU Typewriter Text Variable Width\"")); layout->addWidget(titleLabel, 0, 1); QLabel *dateLabel = new QLabel(date.toString()); - dateLabel->setStyleSheet(QLatin1String("color: gray")); + dateLabel->setStyleSheet(QLatin1String("color: gray; font-family: \"CMU Typewriter Text Variable Width\"")); layout->addWidget(dateLabel, 1, 1); setLayout(layout); } @@ -31,9 +31,9 @@ bool CompositionButton::event(QEvent *event) { if (m_arrow) { if (event->type() == QEvent::HoverEnter) - m_arrow->setStyleSheet(QLatin1String("color: black")); + m_arrow->setStyleSheet(QLatin1String("color: black; font-family: \"CMU Typewriter Text Variable Width\"")); else if (event->type() == QEvent::HoverLeave) - m_arrow->setStyleSheet(QLatin1String("color: gray")); + m_arrow->setStyleSheet(QLatin1String("color: gray; font-family: \"CMU Typewriter Text Variable Width\"")); } return QWidget::event(event); } |
