theme: fix compilation of libsync without QtGui
authorOlivier Goffart <ogoffart@woboq.com>
Fri, 3 Apr 2015 09:27:06 +0000 (11:27 +0200)
committerOlivier Goffart <ogoffart@woboq.com>
Fri, 3 Apr 2015 09:27:06 +0000 (11:27 +0200)
src/libsync/theme.h

index 7974b76687d3597641188202ec3c4e34707f9ba0..7cf4b7599831483152d93f117ec91abdb421efb5 100644 (file)
@@ -196,7 +196,9 @@ public:
     virtual bool wizardSelectiveSyncDefaultNothing() const;
 
 protected:
+#ifndef TOKEN_AUTH_ONLY
     QIcon themeIcon(const QString& name, bool sysTray = false) const;
+#endif
     Theme();
 
 signals:
@@ -208,7 +210,9 @@ private:
 
     static Theme* _instance;
     bool _mono;
+#ifndef TOKEN_AUTH_ONLY
     mutable QHash<QString, QIcon> _iconCache;
+#endif
 };
 
 }