Some work about adaptive color scheme for Web UI (PR #19901)
http://[316:c51a:62a3:8b9::4]/d4708/qBittorrent/src/branch/adaptive-webui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
981 B
32 lines
981 B
14 years ago
|
/*
|
||
|
-----BEGIN QCMOD-----
|
||
|
name: qt-dbus
|
||
|
-----END QCMOD-----
|
||
|
*/
|
||
|
// see Conf::findPkgConfig
|
||
|
class qc_qt_dbus : public ConfObj
|
||
|
{
|
||
|
public:
|
||
|
qc_qt_dbus(Conf *c) : ConfObj(c) {}
|
||
|
QString name() const { return "QtDBus >= 4.5"; }
|
||
|
QString shortname() const { return "qt-dbus"; }
|
||
|
QString checkString() const {
|
||
|
if(!conf->getenv("QC_DISABLE_qt_dbus").isEmpty() || !conf->getenv("QC_DISABLE_GUI").isEmpty())
|
||
|
return "";
|
||
|
return ConfObj::checkString();
|
||
|
}
|
||
|
bool exec(){
|
||
|
if(!conf->getenv("QC_DISABLE_qt_dbus").isEmpty() || !conf->getenv("QC_DISABLE_GUI").isEmpty())
|
||
|
return false;
|
||
|
QStringList incs;
|
||
|
QString req_ver = "4.5.0";
|
||
|
QString version, libs, other;
|
||
|
VersionMode mode = VersionMin;
|
||
|
if(conf->findPkgConfig("QtDBus", mode, req_ver, &version, &incs, &libs, &other)) {
|
||
|
conf->addExtra("CONFIG += dbus");
|
||
|
return true;
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
};
|