use plasma font in some more widgets

svn path=/trunk/KDE/kdelibs/; revision=899830
This commit is contained in:
Marco Martin 2008-12-21 17:17:35 +00:00
parent 11da4f11f8
commit 1b7bf8cdb9
3 changed files with 4 additions and 0 deletions

View File

@ -265,6 +265,7 @@ void NativeTabBar::paintEvent(QPaintEvent *event)
textRect.setLeft(iconRect.right());
}
painter.setFont(Plasma::Theme::defaultTheme()->font(Plasma::Theme::DefaultFont));
painter.drawText(textRect, Qt::AlignCenter | Qt::TextHideMnemonic, tabText(i));
}

View File

@ -74,6 +74,7 @@ public:
p.setColor(QPalette::Normal, QPalette::WindowText, color);
p.setColor(QPalette::Inactive, QPalette::WindowText, color);
native->setPalette(p);
native->setFont(Plasma::Theme::defaultTheme()->font(Plasma::Theme::DefaultFont));
}
Label *q;

View File

@ -301,6 +301,8 @@ void ToolButton::paint(QPainter *painter,
buttonOpt.palette.setColor(QPalette::ButtonText, Plasma::Theme::defaultTheme()->color(Plasma::Theme::TextColor));
}
painter->setFont(Plasma::Theme::defaultTheme()->font(Plasma::Theme::DefaultFont));
button->style()->drawControl(QStyle::CE_ToolButtonLabel, &buttonOpt, painter, button);
}