fix layout of NetworkSettingsSheet

This commit is contained in:
Marco Martin 2014-12-04 13:41:54 +01:00
parent 1b62f963c9
commit fe17a804bc
2 changed files with 27 additions and 18 deletions

View file

@ -31,7 +31,8 @@
*/ */
import QtQuick 2.0 import QtQuick 2.0
import QtQuick.Controls 1.2 import org.kde.plasma.components 2.0
import QtQuick.Layouts 1.1
import MeeGo.Connman 0.2 import MeeGo.Connman 0.2
import "mustache.js" as M import "mustache.js" as M
@ -65,24 +66,32 @@ Item {
} }
} }
Button { RowLayout {
text: "Reject" anchors {
onClicked: { horizontalCenter: parent.horizontalCenter
userAgent.sendUserReply({}); bottom: parent.bottom
scanTimer.running = true;
} }
} Button {
text: "Reject"
Button { onClicked: {
text: "Accept" userAgent.sendUserReply({});
onClicked: { scanTimer.running = true;
console.log('clicked Done ' + 'x:' + x + ' y:' + y); stackView.pop();
var fields = networkPage.netfields; }
for (var key in fields) { }
console.log(key + " --> " + fields[key]);
Button {
text: "Accept"
onClicked: {
console.log('clicked Done ' + 'x:' + x + ' y:' + y);
var fields = networkPage.netfields;
for (var key in fields) {
console.log(key + " --> " + fields[key]);
}
scanTimer.running = true;
userAgent.sendUserReply(fields);
stackView.pop();
} }
scanTimer.running = true;
userAgent.sendUserReply(fields);
} }
} }

View file

@ -1,6 +1,6 @@
[Desktop Entry] [Desktop Entry]
Name=Wireless Name=Wireless
Comment=Connect to a wireless network Comment=Wireless networks
Encoding=UTF-8 Encoding=UTF-8
Type=Service Type=Service