Commit 699a0d50 authored by Alexander Volkov's avatar Alexander Volkov

Remove QT_VERSION checks

Summary: We require Qt 5.9, so these checks are redundant.

Reviewers: #plasma, davidedmundson

Reviewed By: #plasma, davidedmundson

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D10037
parent d311a26d
......@@ -136,14 +136,12 @@ bool DashboardWindow::event(QEvent *event)
// FIXME TODO: We can remove this once we depend on Qt 5.6.1+.
// See: https://bugreports.qt.io/browse/QTBUG-26978
KWindowSystem::setState(winId(), NET::SkipTaskbar | NET::SkipPager);
#if (QT_VERSION > QT_VERSION_CHECK(5, 5, 0))
} else if (event->type() == QEvent::PlatformSurface) {
const QPlatformSurfaceEvent *pSEvent = static_cast<QPlatformSurfaceEvent *>(event);
if (pSEvent->surfaceEventType() == QPlatformSurfaceEvent::SurfaceCreated) {
KWindowSystem::setState(winId(), NET::SkipTaskbar | NET::SkipPager);
}
#endif
} else if (event->type() == QEvent::Show) {
updateTheme();
......
......@@ -217,9 +217,7 @@ void FontUseItem::applyFontDiff(const QFont &fnt, int fontDiffFlags)
_font.setWeight(fnt.weight());
_font.setStyle(fnt.style());
_font.setUnderline(fnt.underline());
#if QT_VERSION >= 0x040800
_font.setStyleName(fnt.styleName());
#endif
}
setFont(_font, isFixedOnly());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment