Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 823 Bytes

rndregisterui.cpp

File metadata and controls

34 lines (26 loc) · 823 Bytes
 
Oct 8, 2012
Oct 8, 2012
1
2
3
4
5
6
7
8
/**
* @file rndregisterui.cpp
* @copyright 2012 Jolla Ltd.
* @author Bernd Wachter <bernd.wachter@jollamobile.com>
* @date 2012
*/
#include <QDeclarativeContext>
Apr 4, 2013
Apr 4, 2013
9
#include <QDir>
Oct 8, 2012
Oct 8, 2012
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include <QGraphicsObject>
#include <QApplication>
#include "rndregisterui.h"
RndRegisterUi::RndRegisterUi(QWidget *parent): QMainWindow(parent){
ui = new QDeclarativeView;
ui->rootContext()->setContextProperty("ssu", &ssu);
QDir dir;
if (dir.exists("/home/nemo/rndregisterui.qml"))
ui->setSource(QUrl("file:///home/nemo/rndregisterui.qml"));
else
ui->setSource(QUrl("qrc:/resources/qml/rndregisterui.qml"));
setCentralWidget(ui);
QObject *item=dynamic_cast<QObject*>(ui->rootObject());
connect(item, SIGNAL(quit()), QApplication::instance(), SLOT(quit()));
}
RndRegisterUi::~RndRegisterUi(){
delete ui;
}