Use Q_OS_MAC instead of the nonexistent Q_OS_MACOS.

Thanks to Richard Johnson for spotting this.

Closes #33
This commit is contained in:
Felix Geyer 2012-07-16 17:49:12 +02:00
parent 676be9da16
commit 965dba63d7
4 changed files with 8 additions and 8 deletions

View file

@ -21,9 +21,9 @@
#include <QtGui/QApplication>
#include <QtGui/QClipboard>
#if defined(Q_OS_UNIX) && !defined(Q_OS_MACOS)
#include <QtDBus/QDBusConnection>
#include <QtDBus/QDBusMessage>
#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
#include <QtDBus/QDBusConnection>
#include <QtDBus/QDBusMessage>
#endif
#include "core/Config.h"
@ -71,7 +71,7 @@ void Clipboard::clearClipboard()
clipboard->clear(QClipboard::Selection);
}
#if defined(Q_OS_UNIX) && !defined(Q_OS_MACOS)
#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
QDBusMessage message = QDBusMessage::createMethodCall("org.kde.klipper", "/klipper", "", "clearClipboardHistory");
QDBusConnection::sessionBus().send(message);
#endif