~ubuntu-branches/ubuntu/wily/kscreen/wily

« back to all changes in this revision

Viewing changes to kcm/src/kcm_testapp.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2015-01-15 01:30:43 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20150115013043-l2q6wmndvl19yduk
Tags: 4:5.1.95-0ubuntu1
* New upstream snapshot
* New upstream beta release

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#include <KLocalizedString>
21
21
#include <QApplication>
22
22
 
 
23
#include <kscreen/getconfigoperation.h>
 
24
 
23
25
// #include <QQuickDebuggingEnabler>
24
26
 
25
27
#include "widget.h"
35
37
    widget.resize(800, 600);
36
38
    widget.show();
37
39
 
 
40
    QObject::connect(new KScreen::GetConfigOperation(), &KScreen::GetConfigOperation::finished,
 
41
                     [&](KScreen::ConfigOperation *op) {
 
42
                        widget.setConfig(qobject_cast<KScreen::GetConfigOperation*>(op)->config());
 
43
                    });
38
44
 
39
45
    return app.exec();
40
46
}