Fix export for msvc

This commit is contained in:
Hannah von Reth 2015-11-28 13:15:09 +01:00
parent 916cbd5eb0
commit 10a18f8239
2 changed files with 5 additions and 3 deletions

View File

@ -32,9 +32,9 @@
using namespace Snore;
#if QT_VERSION >= QT_VERSION_CHECK(5, 4, 0)
SNORE_EXPORT Q_LOGGING_CATEGORY(SNORE, "libsnorenotify", QtWarningMsg)
Q_LOGGING_CATEGORY(SNORE, "libsnorenotify", QtWarningMsg)
#else
SNORE_EXPORT Q_LOGGING_CATEGORY(SNORE, "libsnorenotify")
Q_LOGGING_CATEGORY(SNORE, "libsnorenotify")
#endif

View File

@ -19,6 +19,8 @@
#ifndef SNOREGLOBALS
#define SNOREGLOBALS
#include "snore_exports.h"
#include <QLoggingCategory>
namespace Snore
@ -31,7 +33,7 @@ enum SettingsType {
}
Q_DECLARE_LOGGING_CATEGORY(SNORE)
SNORE_EXPORT Q_DECLARE_LOGGING_CATEGORY(SNORE)
#endif // SNOREGLOBALS