Skip to content

Commit

Permalink
- Dropped Qt4.2 support, it becomes too difficult to maintain for me …
Browse files Browse the repository at this point in the history
…and Trolltech broke backward compatibility for UI files...
  • Loading branch information
Christophe Dumez committed Sep 3, 2007
1 parent f111438 commit 0e81f37
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 41 deletions.
1 change: 1 addition & 0 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,5 @@ beta6->beta7 changelog:
- BUGFIX: Fixed torrent create (can only one file or one folder)
- BUGFIX: the function that set the rows color doesn't handle hidden columns anymore
- BUGFIX: improved search engine plugin manager code and fixed bugs
- BUGFIX: Dropped Qt4.2 support, becomes too difficult to maintain
- COSMETIC: Improved some icons
16 changes: 8 additions & 8 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -340,21 +340,21 @@ fi

gen_files() {
cat >$1/modules.cpp <<EOT
#line 1 "qt42.qcm"
#line 1 "qt4.qcm"
/*
-----BEGIN QCMOD-----
name: Qt >= 4.2
name: Qt >= 4.3
-----END QCMOD-----
*/
class qc_qt42 : public ConfObj
class qc_qt4 : public ConfObj
{
public:
qc_qt42(Conf *c) : ConfObj(c) {}
QString name() const { return "Qt >= 4.2"; }
QString shortname() const { return "qt42"; }
qc_qt4(Conf *c) : ConfObj(c) {}
QString name() const { return "Qt >= 4.3"; }
QString shortname() const { return "Qt 4.3"; }
bool exec()
{
return(QT_VERSION >= 0x040200);
return(QT_VERSION >= 0x040300);
}
};
#line 1 "libtorrent.qcm"
Expand Down Expand Up @@ -738,7 +738,7 @@ public:
EOT
cat >$1/modules_new.cpp <<EOT
o = new qc_qt42(conf);
o = new qc_qt4(conf);
o->required = true;
o->disabled = false;
o = new qc_libtorrent(conf);
Expand Down
2 changes: 1 addition & 1 deletion qbittorrent.qc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<profile>qbittorrent.pro</profile>
<moddir>qcm</moddir>
<datadir/>
<dep type='qt42'>
<dep type='qt4'>
<required/>
</dep>
<dep type='libtorrent'>
Expand Down
16 changes: 16 additions & 0 deletions qcm/qt4.qcm
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
-----BEGIN QCMOD-----
name: Qt >= 4.3
-----END QCMOD-----
*/
class qc_qt4 : public ConfObj
{
public:
qc_qt4(Conf *c) : ConfObj(c) {}
QString name() const { return "Qt >= 4.3"; }
QString shortname() const { return "Qt 4.3"; }
bool exec()
{
return(QT_VERSION >= 0x040300);
}
};
16 changes: 0 additions & 16 deletions qcm/qt42.qcm

This file was deleted.

17 changes: 1 addition & 16 deletions src/src.pro
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ QMAKE_CXXFLAGS_DEBUG += -fwrapv -O1
CONFIG += link_pkgconfig
PKGCONFIG += libtorrent libccext2 libccgnu2

contains(DEFINES, HAVE_MAGICK){
#PKGCONFIG += ImageMagick++
}else{
!contains(DEFINES, HAVE_MAGICK){
message(ImageMagick disabled)
}

Expand All @@ -89,19 +87,6 @@ QT += network xml
DEFINES += QT_NO_CAST_TO_ASCII
#QT_NO_CAST_FROM_ASCII

contains(DEBUG_MODE, 0){
contains(QT_VERSION, 4.2.0) {
message(Qt 4.2.0 detected : enabling debug output because of a bug in this version of Qt)
}else{
contains(QT_VERSION, 4.2.1) {
message(Qt 4.2.1 detected : enabling debug output because of a bug in this version of Qt)
}else{
DEFINES += QT_NO_DEBUG_OUTPUT
}
}
CONFIG += release
}

# Windows
win32 {
LIBS += -ltorrent -lccext2 -lccgnu2
Expand Down

0 comments on commit 0e81f37

Please sign in to comment.