qBittorrent/qcm/qt4.qcm
Christophe Dumez 8a1e79d22f Restructured the project file
Move OS specific configuration to separate project files
2010-11-20 17:21:40 +00:00

20 lines
462 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->addExtra("CONFIG += nox");
}
return(QT_VERSION >= 0x040500);
}
};