diff --git a/README.md b/README.md index 1a0ad47..7d4c97a 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,17 @@ This repository contains a small QT4/C++ based project which implements basic im # Building and running +This project requires qt4 to build and run:
qmake make ./imageviewer-qt4+ + +For Arch Linux, there is qtchooser. +Using it, you can use +
+QT_SELECT=4 qmake ++to create the Makefile. diff --git a/imageviewer-qt4.pro b/imageviewer-qt4.pro index 91efccc..8bfff07 100644 --- a/imageviewer-qt4.pro +++ b/imageviewer-qt4.pro @@ -1,15 +1,15 @@ - HEADERS = imageviewer-qt4.h - SOURCES = imageviewer-qt4.cpp \ - imageviewer-main-qt4.cpp +HEADERS = imageviewer-qt4.h +SOURCES = imageviewer-qt4.cpp \ + imageviewer-main-qt4.cpp - # install - target.path = $$[QT_INSTALL_EXAMPLES]/widgets/imageviewer - sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS imageviewer.pro - sources.path = $$[QT_INSTALL_EXAMPLES]/widgets/imageviewer - INSTALLS += target sources +# install +target.path = $$[QT_INSTALL_EXAMPLES]/widgets/imageviewer +sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS imageviewer.pro +sources.path = $$[QT_INSTALL_EXAMPLES]/widgets/imageviewer +INSTALLS += target sources - symbian: include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri) +symbian: include($$QT_SOURCE_TREE/examples/symbianpkgrules.pri) - wince*: { - DEPLOYMENT_PLUGIN += qjpeg qmng qgif - } +wince*: { + DEPLOYMENT_PLUGIN += qjpeg qmng qgif +}