mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
plasma: call Plasma::ThemedWidgetInterface::initTheming() from Plasma::CalendarWidget constructor
to apply palette and font instantly instead of relying on it to happen due to external events Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
97372f70af
commit
6cb0ae1239
2 changed files with 4 additions and 2 deletions
|
@ -54,6 +54,8 @@ CalendarWidget::CalendarWidget(QGraphicsWidget *parent)
|
|||
d->style = Plasma::Style::sharedStyle();
|
||||
native->setStyle(d->style.data());
|
||||
|
||||
d->initTheming();
|
||||
|
||||
QToolButton* nativemonthbutton = native->findChild<QToolButton*>("qt_calendar_monthbutton");
|
||||
if (nativemonthbutton) {
|
||||
// FIXME: the popup menu outside color is not transparent
|
||||
|
@ -90,7 +92,7 @@ QString CalendarWidget::styleSheet()
|
|||
return widget()->styleSheet();
|
||||
}
|
||||
|
||||
KCalendarWidget *CalendarWidget::nativeWidget() const
|
||||
KCalendarWidget* CalendarWidget::nativeWidget() const
|
||||
{
|
||||
return static_cast<KCalendarWidget*>(widget());
|
||||
}
|
||||
|
|
|
@ -76,7 +76,7 @@ public:
|
|||
/**
|
||||
* @return the native widget wrapped by this CalendarWidget
|
||||
*/
|
||||
KCalendarWidget *nativeWidget() const;
|
||||
KCalendarWidget* nativeWidget() const;
|
||||
|
||||
Q_SIGNALS:
|
||||
void clicked(QDate);
|
||||
|
|
Loading…
Add table
Reference in a new issue