2007-09-04 02:59:46 +04:00
|
|
|
/*
|
|
|
|
-----BEGIN QCMOD-----
|
2009-11-27 00:11:37 +03:00
|
|
|
name: Qt >= 4.4
|
2009-12-15 13:36:18 +03:00
|
|
|
arg: disable-gui, Disable qBittorrent Graphical user interface for headless running
|
2007-09-04 02:59:46 +04:00
|
|
|
-----END QCMOD-----
|
|
|
|
*/
|
|
|
|
class qc_qt4 : public ConfObj
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
qc_qt4(Conf *c) : ConfObj(c) {}
|
2009-11-04 18:04:11 +03:00
|
|
|
QString name() const { return "Qt >= 4.4"; }
|
|
|
|
QString shortname() const { return "Qt 4.4"; }
|
2007-09-04 02:59:46 +04:00
|
|
|
bool exec()
|
|
|
|
{
|
2009-12-15 13:36:18 +03:00
|
|
|
if(!conf->getenv("QC_DISABLE_GUI").isEmpty()) {
|
|
|
|
conf->addDefine("DISABLE_GUI");
|
|
|
|
}
|
2009-11-27 00:11:37 +03:00
|
|
|
if(QT_VERSION >= 0x040500) {
|
|
|
|
conf->addDefine("QT_4_5");
|
|
|
|
}
|
2009-11-04 18:04:11 +03:00
|
|
|
return(QT_VERSION >= 0x040400);
|
2008-07-06 22:39:07 +04:00
|
|
|
|
2007-09-04 02:59:46 +04:00
|
|
|
}
|
|
|
|
};
|