Index: README.txt =================================================================== --- README.txt (revision 14161) +++ README.txt (working copy) @@ -36,9 +36,9 @@ BUILDING ON UNIX - 1. Prerequisites: Qt >= 5 and its development packages + 1. Prerequisites: Qt >= 4.6 and its development packages 2. Build Transmission as normal - 3. In the qt/ directory, type "qmake qtr.pro" or "qmake-qt5 qtr.pro" + 3. In the qt/ directory, type "qmake qtr.pro" (or "qmake-qt4 qtr.pro", or "qmake-qt5 qtr.pro") 4. In the qt/ directory, type "make" 5. In the qt/ directory, as root, type "INSTALL_ROOT=/usr make install" (Feel free to replace /usr with /usr/local or /opt or whatever) Index: favicon.cc =================================================================== --- favicon.cc (revision 14161) +++ favicon.cc (working copy) @@ -14,7 +14,12 @@ #include #include #include + +#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) +#include +#else #include +#endif #include "favicon.h" @@ -40,7 +45,13 @@ QString Favicons :: getCacheDir( ) { - const QString base = QStandardPaths::writableLocation (QStandardPaths::CacheLocation); + const QString base = +#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) + QDesktopServices::storageLocation( QDesktopServices::CacheLocation ); +#else + QStandardPaths::writableLocation( QStandardPaths::CacheLocation ); +#endif + return QDir( base ).absoluteFilePath( "favicons" ); } Index: file-tree.cc =================================================================== --- file-tree.cc (revision 14161) +++ file-tree.cc (working copy) @@ -885,7 +885,12 @@ for (int i=0; isetResizeMode(i, QHeaderView::Interactive); +#else header()->setSectionResizeMode(i, QHeaderView::Interactive); +#endif } connect (this, SIGNAL(clicked(const QModelIndex&)), Index: qtr.pro =================================================================== --- qtr.pro (revision 14161) +++ qtr.pro (working copy) @@ -12,9 +12,13 @@ man.files = transmission-qt.1 CONFIG += qt thread debug link_pkgconfig -QT += network dbus widgets +QT += network dbus PKGCONFIG = fontconfig libcurl openssl libevent +greaterThan(QT_MAJOR_VERSION, 4) { + QT += widgets +} + TRANSMISSION_TOP = .. include(config.pri)