2007-09-04 02:59:46 +04:00
|
|
|
/*
|
|
|
|
-----BEGIN QCMOD-----
|
2010-10-16 21:39:03 +04:00
|
|
|
name: Qt >= 4.5
|
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) {}
|
2010-10-16 21:39:03 +04:00
|
|
|
QString name() const { return "Qt >= 4.5"; }
|
|
|
|
QString shortname() const { return "Qt 4.5"; }
|
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()) {
|
2010-11-20 20:21:40 +03:00
|
|
|
conf->addExtra("CONFIG += nox");
|
2009-12-15 13:36:18 +03:00
|
|
|
}
|
2010-10-16 21:39:03 +04:00
|
|
|
return(QT_VERSION >= 0x040500);
|
2007-09-04 02:59:46 +04:00
|
|
|
}
|
|
|
|
};
|