mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-27 11:49:01 +03:00
a27d2dcac2
Dropped Qt 4.4 support
20 lines
461 B
Text
20 lines
461 B
Text
/*
|
|
-----BEGIN QCMOD-----
|
|
name: Qt >= 4.5
|
|
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.5"; }
|
|
QString shortname() const { return "Qt 4.5"; }
|
|
bool exec()
|
|
{
|
|
if(!conf->getenv("QC_DISABLE_GUI").isEmpty()) {
|
|
conf->addDefine("DISABLE_GUI");
|
|
}
|
|
return(QT_VERSION >= 0x040500);
|
|
}
|
|
};
|