mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-15 20:51:39 +03:00
24 lines
564 B
Text
24 lines
564 B
Text
/*
|
|
-----BEGIN QCMOD-----
|
|
name: Qt >= 4.4
|
|
arg: disable-gui, Disable qBittorrent Graphical user interface for headless running
|
|
-----END QCMOD-----
|
|
*/
|
|
class qc_qt4 : public ConfObj
|
|
{
|
|
public:
|
|
qc_qt4(Conf *c) : ConfObj(c) {}
|
|
QString name() const { return "Qt >= 4.4"; }
|
|
QString shortname() const { return "Qt 4.4"; }
|
|
bool exec()
|
|
{
|
|
if(!conf->getenv("QC_DISABLE_GUI").isEmpty()) {
|
|
conf->addDefine("DISABLE_GUI");
|
|
}
|
|
if(QT_VERSION >= 0x040500) {
|
|
conf->addDefine("QT_4_5");
|
|
}
|
|
return(QT_VERSION >= 0x040400);
|
|
|
|
}
|
|
};
|