Changeset View
Changeset View
Standalone View
Standalone View
autotests/kfontsettingsdata_unittest.cpp
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Line(s) | |||||
55 | // But we can't use Q_COREAPP_STARTUP_FUNCTION because the platform theme ends up being created | 55 | // But we can't use Q_COREAPP_STARTUP_FUNCTION because the platform theme ends up being created | ||
56 | // first, with the wrong environment. | 56 | // first, with the wrong environment. | ||
57 | Q_CONSTRUCTOR_FUNCTION(prepareEnvironment); | 57 | Q_CONSTRUCTOR_FUNCTION(prepareEnvironment); | ||
58 | 58 | | |||
59 | class KFontSettingsData_UnitTest : public QWidget | 59 | class KFontSettingsData_UnitTest : public QWidget | ||
60 | { | 60 | { | ||
61 | Q_OBJECT | 61 | Q_OBJECT | ||
62 | public: | 62 | public: | ||
63 | bool event(QEvent *e) Q_DECL_OVERRIDE | 63 | bool event(QEvent *e) override | ||
64 | { | 64 | { | ||
65 | if (e->type() == QEvent::ApplicationFontChange) { | 65 | if (e->type() == QEvent::ApplicationFontChange) { | ||
66 | m_appChangedFont = true; | 66 | m_appChangedFont = true; | ||
67 | } | 67 | } | ||
68 | return QWidget::event(e); | 68 | return QWidget::event(e); | ||
69 | } | 69 | } | ||
70 | private: | 70 | private: | ||
71 | bool m_appChangedFont; | 71 | bool m_appChangedFont; | ||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |