From d581f653c6e1f48e8f8d250813f1c62fb990d687 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 24 Jan 2010 12:07:07 +0000 Subject: [PATCH] Nox compilation fix --- src/misc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/misc.h b/src/misc.h index aac2b09d7..5e998918d 100644 --- a/src/misc.h +++ b/src/misc.h @@ -44,7 +44,6 @@ #include #include #include -#include #include #include @@ -52,6 +51,7 @@ #include #else #include +#include #endif #ifdef Q_WS_WIN @@ -266,6 +266,7 @@ public: #endif } +#ifndef DISABLE_GUI // Get screen center static QPoint screenCenter(QWidget *win) { int scrn = 0; @@ -281,6 +282,7 @@ public: QRect desk(QApplication::desktop()->availableGeometry(scrn)); return QPoint((desk.width() - win->frameGeometry().width()) / 2, (desk.height() - win->frameGeometry().height()) / 2); } +#endif static QString searchEngineLocation() { QString location = QDir::cleanPath(QDesktopServicesDataLocation()