Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

Commit

Permalink
Clean a bit the menu (combine about & help) and remove log out useles…
Browse files Browse the repository at this point in the history
…s feature)
  • Loading branch information
Benoit HERVIER committed Apr 8, 2013
1 parent eb50895 commit a7613a5
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 17 deletions.
15 changes: 14 additions & 1 deletion bitpurse/qml/AboutPage.qml
Expand Up @@ -100,6 +100,19 @@ Page {
anchors.horizontalCenter: parent.horizontalCenter
}

Button {
id: helpButton
width: 350; height: 50
text: qsTr("Help")
onClicked: {
pageStack.push(
Qt.createComponent(
Qt.resolvedUrl("HelpPage.qml")));

}
anchors.horizontalCenter: parent.horizontalCenter
}

/*BusyIndicator {
id: busyindicatorSending
platformStyle: BusyIndicatorStyle { size: "large"; spinnerFrames: "image://theme/spinner"}
Expand Down Expand Up @@ -168,4 +181,4 @@ Page {
}
}
}
}
}
11 changes: 6 additions & 5 deletions bitpurse/qml/RequestPage.qml
Expand Up @@ -51,10 +51,11 @@ Page {
source: WalletController.currentAddress ?
Qt.resolvedUrl('https://blockchain.info/qr?data='
+ WalletController.currentAddress
+ '&size=512') : undefined
anchors.right: parent.right
anchors.left: parent.left
// anchors.verticalCenter: parent.verticalCenter
+ '&size=384') : undefined
width: 384
height: 384

anchors.horizontalCenter: parent.horizontalCenter
}

Label {
Expand Down Expand Up @@ -91,4 +92,4 @@ Page {
}
}
}
}
}
4 changes: 2 additions & 2 deletions bitpurse/qml/SettingsPage.qml
Expand Up @@ -26,7 +26,7 @@ Page {

Column {
id: settingsColumn
spacing: 10
spacing: 15
width: parent.width - 40
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top
Expand Down Expand Up @@ -263,4 +263,4 @@ Page {
platformStyle: ScrollDecoratorStyle {
}}

}
}
2 changes: 1 addition & 1 deletion bitpurse/qml/TitleLabel.qml
Expand Up @@ -40,4 +40,4 @@ Row {
font.bold: true
font.pixelSize: 20
}
}
}
12 changes: 6 additions & 6 deletions bitpurse/qml/main.qml
Expand Up @@ -127,17 +127,17 @@ PageStackWindow {
id: mainMenu
visualParent: pageStack
MenuLayout {
MenuItem { text: qsTr("About");
MenuItem { text: qsTr("About & Help");
onClicked: pageStack.push(
Qt.createComponent(
Qt.resolvedUrl("AboutPage.qml")));
}

MenuItem { text: qsTr("Help");
/*MenuItem { text: qsTr("Help");
onClicked: pageStack.push(
Qt.createComponent(
Qt.resolvedUrl("HelpPage.qml")));
}
}*/


MenuItem { text: qsTr("Settings");
Expand All @@ -152,11 +152,11 @@ PageStackWindow {
Qt.openUrlExternally('https://github.com/khertan/BitPurse/issues/new');
}
}
MenuItem { text: qsTr('LogOut'); onClicked: {
/*MenuItem { text: qsTr('LogOut'); onClicked: {
WalletController.currentPassKey = '';
changePage(loginPage);
}
}
}*/
}
}

Expand Down Expand Up @@ -192,4 +192,4 @@ PageStackWindow {
}
}
]
}
}
4 changes: 2 additions & 2 deletions bitpurse/wallet.py
Expand Up @@ -381,7 +381,7 @@ def load_txs_from_blockchain(self,):
'|'.join(self.getArchivedAddrAddresses())))

data = getDataFromChainblock(req)

print data
try:
self.balance = data['wallet']['final_balance']
except KeyError:
Expand Down Expand Up @@ -886,4 +886,4 @@ def putAddrInClipboard(self, addr):
currentPassKey = Property(unicode,
getCurrentPassKey,
setCurrentPassKey,
notify=onCurrentPassKey)
notify=onCurrentPassKey)

0 comments on commit a7613a5

Please sign in to comment.