~ps-jenkins/dee-qt/latestsnapshot-3.3+14.04.20140116-0ubuntu1

« back to all changes in this revision

Viewing changes to test.cpp

  • Committer: Michał Sawicz
  • Date: 2013-01-31 19:01:52 UTC
  • mfrom: (65.1.21 qt4-and-qt5)
  • Revision ID: michal.sawicz@canonical.com-20130131190152-pnlsxjnv92rymaux
build for both qt4 and qt5

rename the libs to libdee-qt{4,5}-3
rename QML bindings to qml{1,2}-dee-3
bump version number
rename the QML module to Dee
version the QML module accordingly
split the QML module out into subdir
split the tests into subdir

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2010 Canonical, Ltd.
3
 
 *
4
 
 * Authors:
5
 
 *  Florian Boucault <florian.boucault@canonical.com>
6
 
 *
7
 
 * This program is free software; you can redistribute it and/or modify
8
 
 * it under the terms of the GNU General Public License as published by
9
 
 * the Free Software Foundation; version 3.
10
 
 *
11
 
 * This program is distributed in the hope that it will be useful,
12
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
 * GNU General Public License for more details.
15
 
 *
16
 
 * You should have received a copy of the GNU General Public License
17
 
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
 
 */
19
 
 
20
 
#include "test.h"
21
 
#include "deelistmodel.h"
22
 
 
23
 
int main(int argc, char *argv[])
24
 
{
25
 
    TestApplication application(argc, argv);
26
 
 
27
 
    DeeListModel* model = new DeeListModel;
28
 
 
29
 
    QObject::connect(model, SIGNAL(synchronizedChanged(bool)), &application, SLOT(onSynchronizedChanged(bool)));
30
 
    QObject::connect(model, SIGNAL(rowsInserted(QModelIndex, int, int)), &application, SLOT(onRowsInserted()));
31
 
 
32
 
    model->setName("com.canonical.Unity.ApplicationsPlace.ResultsModel");
33
 
 
34
 
    return application.exec();
35
 
}