qt4.qcm 462 Bytes
Newer Older
1 2
/*
-----BEGIN QCMOD-----
3
name: Qt >= 4.5
4
arg: disable-gui, Disable qBittorrent Graphical user interface for headless running
5 6 7 8 9 10
-----END QCMOD-----
*/
class qc_qt4 : public ConfObj
{
public:
	qc_qt4(Conf *c) : ConfObj(c) {}
11 12
	QString name() const { return "Qt >= 4.5"; }
	QString shortname() const { return "Qt 4.5"; }
13 14
	bool exec()
	{
15
		if(!conf->getenv("QC_DISABLE_GUI").isEmpty()) {
16
			conf->addExtra("CONFIG += nox");
17
		}	
18
		return(QT_VERSION >= 0x040500);
19 20
	}
};