mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-27 08:19:30 +08:00
27 lines
887 B
Plaintext
27 lines
887 B
Plaintext
/*
|
|
-----BEGIN QCMOD-----
|
|
name: qtsingleapplication
|
|
arg: with-qtsingleapplication=[system|shipped], Use the shipped qtsingleapplication library or the system one
|
|
-----END QCMOD-----
|
|
*/
|
|
class qc_qtsingleapplication : public ConfObj
|
|
{
|
|
public:
|
|
qc_qtsingleapplication(Conf *c) : ConfObj(c) {}
|
|
QString name() const { return "qtsingleapplication library"; }
|
|
QString shortname() const { return "qtsingleapplication"; }
|
|
|
|
bool exec(){
|
|
QString s;
|
|
s = conf->getenv("QC_WITH_QTSINGLEAPPLICATION");
|
|
if(s.compare("system", Qt::CaseInsensitive) == 0) {
|
|
// System
|
|
conf->addExtra("CONFIG += usesystemqtsingleapplication");
|
|
printf(" [system] ");
|
|
} else {
|
|
printf(" [shipped] ");
|
|
}
|
|
return true;
|
|
}
|
|
};
|