Compile only necessary code in specified platforms
This commit is contained in:
parent
9f38b3f1a7
commit
61f62ae232
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue