Skip to content

Commit

Permalink
Fix "QNetworkRequest header not found".
Browse files Browse the repository at this point in the history
- The QtNetwork include path prefix is used in QtDownload.h for QNetwork* headers.
- For the QNetworkRequest header there is no QtNetwork inlude path prefix in QtDownload.cpp which gives a "header not found" compile error on ArchLinux.
- The patch adds the missing 'QtNetwork' component for 'Qt4' to the CMake build system.

Signed-off-by: Hanspeter Portner <dev@open-music-kontrollers.ch>
  • Loading branch information
ventosus committed Oct 28, 2014
1 parent 7371fc3 commit f0f6fea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion QtCollider/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ else()
set(required_qt_version 4.7)
endif()

find_package (Qt4 ${required_qt_version} COMPONENTS QtCore QtGui QtWebKit)
find_package (Qt4 ${required_qt_version} COMPONENTS QtCore QtGui QtWebKit QtNetwork)

if (NOT QT4_FOUND)
set(FIND_QT_ERROR_MSG "You are trying to compile with Qt GUI support, but a suitable version of Qt or one of its components could not be found:")
Expand Down
4 changes: 2 additions & 2 deletions QtCollider/QtDownload.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@

#include <QObject>
#include <QString>
#include <QtNetwork/QNetworkAccessManager>
#include <QtNetwork/QNetworkReply>
#include <QNetworkAccessManager>
#include <QNetworkReply>


class QtDownload : public QObject {
Expand Down

0 comments on commit f0f6fea

Please sign in to comment.