From 3eface405073f016a5524020a22a2dbc54b2536a Mon Sep 17 00:00:00 2001 From: Inso <insomniak.fr@gmail.com> Date: Fri, 2 Jan 2015 11:26:53 +0100 Subject: [PATCH] Fixed account configuration --- res/ui/account_cfg.ui | 2 +- res/ui/currency_tab.ui | 43 +++++++++++++++++++++++++++++--- src/cutecoin/gui/currency_tab.py | 1 - 3 files changed, 40 insertions(+), 6 deletions(-) diff --git a/res/ui/account_cfg.ui b/res/ui/account_cfg.ui index 5cbe3498..a3a56a7e 100644 --- a/res/ui/account_cfg.ui +++ b/res/ui/account_cfg.ui @@ -20,7 +20,7 @@ <item> <widget class="QStackedWidget" name="stacked_pages"> <property name="currentIndex"> - <number>1</number> + <number>0</number> </property> <widget class="QWidget" name="page_init"> <layout class="QVBoxLayout" name="verticalLayout_4"> diff --git a/res/ui/currency_tab.ui b/res/ui/currency_tab.ui index c41d3366..dfc7c4c3 100644 --- a/res/ui/currency_tab.ui +++ b/res/ui/currency_tab.ui @@ -101,11 +101,46 @@ </widget> </item> <item> - <widget class="QLabel" name="label_current_block"> - <property name="text"> - <string/> + <layout class="QHBoxLayout" name="horizontalLayout_2"> + <property name="topMargin"> + <number>6</number> </property> - </widget> + <item> + <widget class="QLabel" name="label_current_block"> + <property name="text"> + <string/> + </property> + </widget> + </item> + <item> + <widget class="QProgressBar" name="bar_requests"> + <property name="enabled"> + <bool>true</bool> + </property> + <property name="sizePolicy"> + <sizepolicy hsizetype="Maximum" vsizetype="Fixed"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <property name="maximum"> + <number>0</number> + </property> + <property name="value"> + <number>0</number> + </property> + <property name="textVisible"> + <bool>true</bool> + </property> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="invertedAppearance"> + <bool>false</bool> + </property> + </widget> + </item> + </layout> </item> </layout> </widget> diff --git a/src/cutecoin/gui/currency_tab.py b/src/cutecoin/gui/currency_tab.py index 8223cc65..26533ba8 100644 --- a/src/cutecoin/gui/currency_tab.py +++ b/src/cutecoin/gui/currency_tab.py @@ -108,7 +108,6 @@ class CurrencyTabWidget(QWidget, Ui_CurrencyTabWidget): QModelIndex(), QModelIndex(), []) - self.label_current_block.setText("Current Block : {0}".format(block_number)) def refresh_wallets(self): -- GitLab