~ubuntu-branches/ubuntu/quantal/psi/quantal

« back to all changes in this revision

Viewing changes to qcm/bundled-qca.qcm

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2008-04-14 18:57:30 UTC
  • mfrom: (2.1.9 hardy)
  • Revision ID: james.westby@ubuntu.com-20080414185730-528re3zp0m2hdlhi
Tags: 0.11-8
* added CONFIG -= link_prl to .pro files and removed dependencies
  which are made unnecessary by this change
* Fix segfault when closing last chat tab with qt4.4
  (This is from upstream svn, rev. 1101) (Closes: Bug#476122)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
-----BEGIN QCMOD-----
 
3
name: Use bundled QCA
 
4
-----END QCMOD-----
 
5
*/
 
6
 
 
7
//----------------------------------------------------------------------------
 
8
// qc_bundled_qca
 
9
//----------------------------------------------------------------------------
 
10
class qc_bundled_qca : public ConfObj
 
11
{
 
12
public:
 
13
        qc_bundled_qca(Conf *c) : ConfObj(c) {}
 
14
        QString name() const { return "bundled QCA 2.0"; }
 
15
        QString shortname() const { return "bundled_qca"; }
 
16
 
 
17
        bool exec()
 
18
        {
 
19
                // FIXME: Check QCA version number
 
20
                if (QFile::exists("third-party/qca/qca")) {
 
21
                        conf->addExtra("CONFIG += qca-static");
 
22
                        conf->addDefine("QCA_NO_PLUGINS");
 
23
                        return true;
 
24
                }
 
25
                else {
 
26
                        return false;
 
27
                }
 
28
        }
 
29
};