diff options
author | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2013-10-11 02:00:46 +0000 |
---|---|---|
committer | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2013-10-11 02:00:46 +0000 |
commit | ba119f917c65e1005a688c933b508640eff5b0ae (patch) | |
tree | e20bd12cf11b230fd5896c6995662bf2731abb71 | |
parent | layout (diff) | |
download | gpg4usb-ba119f917c65e1005a688c933b508640eff5b0ae.tar.gz gpg4usb-ba119f917c65e1005a688c933b508640eff5b0ae.zip |
layout
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@1048 34ebc366-c3a9-4b3c-9f84-69acf7962910
-rw-r--r-- | qml/keydetails.qml | 34 | ||||
-rw-r--r-- | qmlpage.cpp | 8 |
2 files changed, 20 insertions, 22 deletions
diff --git a/qml/keydetails.qml b/qml/keydetails.qml index 81229df..3e4cce9 100644 --- a/qml/keydetails.qml +++ b/qml/keydetails.qml @@ -1,66 +1,66 @@ import QtQuick 1.1 Rectangle { - width: 600 //these are the only explicit sizes set - height: 400 //all others are relative + width: 1200 //these are the only explicit sizes set + height: 1000 //all others are relative anchors.fill: parent //color: "red" Rectangle { id: rectangle2 - x: 120 + x: 0 y: 0 - width: 480 + width: 1200 height: 47 - color: "#3779d5" + color: "#99bff1" } Rectangle { id: rectangle1 x: 0 y: 0 - width: 120 - height: 400 - color: "#827968" + width: 107 + height: 1000 + color: "#978c79" } Text { // qsTr() for internationalisation, like tr() - x: 136 + x: 118 y: 54 text: qsTr("id:") } Text { - x: 190 + x: 172 y: 54 text: id } Text { id: text1 - x: 136 + x: 118 y: 75 text: qsTr("email:") } Text { id: text2 - x: 190 + x: 172 y: 75 text: email } Text { id: text3 - x: 137 + x: 119 y: 96 text: qsTr("name:") } Text { id: text4 - x: 190 + x: 172 y: 96 text: name } @@ -70,14 +70,14 @@ Rectangle { id: image1 x: 0 y: 0 - width: 120 - height: 273 + width: 107 + height: 229 source: "qrc:/wizard_keys.png" } Text { id: text5 - x: 136 + x: 118 y: 7 width: 20 height: 15 diff --git a/qmlpage.cpp b/qmlpage.cpp index 0063f08..47564d3 100644 --- a/qmlpage.cpp +++ b/qmlpage.cpp @@ -23,10 +23,8 @@ QMLPage::QMLPage(KgpgCore::KgpgKey key, QWidget *parent) : qDebug() << "qml:::::" << QUrl::fromLocalFile("keydetails.qml"); - - //QWidget *widget = myExistingWidget(); - //QVBoxLayout *layout = new QVBoxLayout(this); - QGridLayout *layout = new QGridLayout(this); - layout->setOriginCorner(Qt::TopLeftCorner); + QVBoxLayout *layout = new QVBoxLayout(this); + //QGridLayout *layout = new QGridLayout(this); + //layout->setOriginCorner(Qt::TopLeftCorner); layout->addWidget(qmlView); } |