1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-22 12:34:19 +00:00

Nox compilation fix

This commit is contained in:
Christophe Dumez 2010-01-24 12:07:07 +00:00
parent 48dbaf05ae
commit d581f653c6

View File

@ -44,7 +44,6 @@
#include <QUrl> #include <QUrl>
#include <ctime> #include <ctime>
#include <QDateTime> #include <QDateTime>
#include <QDesktopWidget>
#include <boost/date_time/posix_time/posix_time_types.hpp> #include <boost/date_time/posix_time/posix_time_types.hpp>
#include <boost/date_time/posix_time/conversion.hpp> #include <boost/date_time/posix_time/conversion.hpp>
@ -52,6 +51,7 @@
#include <QCoreApplication> #include <QCoreApplication>
#else #else
#include <QApplication> #include <QApplication>
#include <QDesktopWidget>
#endif #endif
#ifdef Q_WS_WIN #ifdef Q_WS_WIN
@ -266,6 +266,7 @@ public:
#endif #endif
} }
#ifndef DISABLE_GUI
// Get screen center // Get screen center
static QPoint screenCenter(QWidget *win) { static QPoint screenCenter(QWidget *win) {
int scrn = 0; int scrn = 0;
@ -281,6 +282,7 @@ public:
QRect desk(QApplication::desktop()->availableGeometry(scrn)); QRect desk(QApplication::desktop()->availableGeometry(scrn));
return QPoint((desk.width() - win->frameGeometry().width()) / 2, (desk.height() - win->frameGeometry().height()) / 2); return QPoint((desk.width() - win->frameGeometry().width()) / 2, (desk.height() - win->frameGeometry().height()) / 2);
} }
#endif
static QString searchEngineLocation() { static QString searchEngineLocation() {
QString location = QDir::cleanPath(QDesktopServicesDataLocation() QString location = QDir::cleanPath(QDesktopServicesDataLocation()