Utility: Compile on Windows again

Theme moc files belong with libowncloud
This commit is contained in:
Daniel Molkentin 2013-07-06 22:39:06 +02:00
parent fff795146e
commit 751d7deda6
3 changed files with 6 additions and 3 deletions

View file

@ -81,6 +81,8 @@ set(libsync_HEADERS
mirall/folderwatcher.h mirall/folderwatcher.h
mirall/owncloudfolder.h mirall/owncloudfolder.h
mirall/csyncthread.h mirall/csyncthread.h
mirall/theme.h
mirall/owncloudtheme.h
mirall/owncloudinfo.h mirall/owncloudinfo.h
mirall/credentialstore.h mirall/credentialstore.h
mirall/logger.h mirall/logger.h
@ -175,7 +177,6 @@ set(mirall_HEADERS
mirall/generalsettings.h mirall/generalsettings.h
mirall/accountsettings.h mirall/accountsettings.h
mirall/ignorelisteditor.h mirall/ignorelisteditor.h
mirall/theme.h
) )
if( UNIX AND NOT APPLE) if( UNIX AND NOT APPLE)

View file

@ -21,6 +21,7 @@ namespace Mirall {
class ownCloudTheme : public Theme class ownCloudTheme : public Theme
{ {
Q_OBJECT
public: public:
ownCloudTheme(); ownCloudTheme();

View file

@ -164,7 +164,7 @@ static const char runPathC[] = "HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\
bool Utility::hasLaunchOnStartup(const QString &appName) bool Utility::hasLaunchOnStartup(const QString &appName)
{ {
#if defined(Q_OS_WIN) #if defined(Q_OS_WIN)
QString runPath(QLatin1String(runPathC)); QString runPath = QLatin1String(runPathC);
QSettings settings(runPath, QSettings::NativeFormat); QSettings settings(runPath, QSettings::NativeFormat);
return settings.contains(appName); return settings.contains(appName);
#elif defined(Q_OS_MAC) #elif defined(Q_OS_MAC)
@ -182,7 +182,8 @@ namespace {
void Utility::setLaunchOnStartup(const QString &appName, const QString& guiName, bool enable) void Utility::setLaunchOnStartup(const QString &appName, const QString& guiName, bool enable)
{ {
#if defined(Q_OS_WIN) #if defined(Q_OS_WIN)
QString runPath(QLatin1String(runPathC)); Q_UNUSED(guiName)
QString runPath = QLatin1String(runPathC);
QSettings settings(runPath, QSettings::NativeFormat); QSettings settings(runPath, QSettings::NativeFormat);
if (enable) { if (enable) {
settings.setValue(appName, QCoreApplication::applicationFilePath().replace('/','\\')); settings.setValue(appName, QCoreApplication::applicationFilePath().replace('/','\\'));