use plasma font in some more widgets
svn path=/trunk/KDE/kdelibs/; revision=899830
This commit is contained in:
parent
11da4f11f8
commit
1b7bf8cdb9
@ -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));
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user