Commit 20c8cf93 authored by Weixuan Xiao's avatar Weixuan Xiao

Compile only necessary code in specified platforms

parent aa1f55a7
Pipeline #10556 passed with stage
in 13 minutes and 12 seconds
......@@ -60,6 +60,7 @@ void IndicatorHelper::systrayIconHook(KStatusNotifierItem &systray)
}
#endif
#ifdef Q_OS_MAC
MacOSIndicatorHelper::MacOSIndicatorHelper()
{
QIcon kdeconnectIcon = QIcon::fromTheme(QStringLiteral("kdeconnect"));
......@@ -169,7 +170,9 @@ void MacOSIndicatorHelper::systrayIconHook(KStatusNotifierItem &systray)
}
}
#endif
#endif
#ifdef Q_OS_WIN
WindowsIndicatorHelper::WindowsIndicatorHelper() {}
WindowsIndicatorHelper::~WindowsIndicatorHelper() {}
......@@ -190,3 +193,4 @@ void WindowsIndicatorHelper::systrayIconHook(KStatusNotifierItem &systray)
Q_UNUSED(systray);
}
#endif
#endif
......@@ -48,6 +48,7 @@ public:
};
#ifdef Q_OS_MAC
class MacOSIndicatorHelper : public IndicatorHelper
{
public:
......@@ -68,8 +69,9 @@ public:
private:
QSplashScreen *m_splashScreen;
};
#endif
#ifdef Q_OS_WIN
class WindowsIndicatorHelper : public IndicatorHelper
{
public:
......@@ -84,3 +86,4 @@ public:
void systrayIconHook(KStatusNotifierItem &systray);
#endif
};
#endif
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