Skip to content
Snippets Groups Projects
Commit f775142a authored by inso's avatar inso
Browse files

Merge branch 'about_popup' into dev

Conflicts:
	res/ui/mainwindow.ui
	src/cutecoin/gui/mainwindow.py
parents ffa7024b 059bda49
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>AboutPopup</class>
<widget class="QDialog" name="AboutPopup">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>297</width>
<height>264</height>
</rect>
</property>
<property name="windowTitle">
<string>About</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>TextLabel</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Ok</set>
</property>
<property name="centerButtons">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>AboutPopup</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>
......@@ -33,7 +33,7 @@
<x>0</x>
<y>0</y>
<width>681</width>
<height>20</height>
<height>25</height>
</rect>
</property>
<widget class="QMenu" name="menu_account">
......@@ -53,6 +53,7 @@
<addaction name="action_export"/>
<addaction name="action_import"/>
<addaction name="separator"/>
<addaction name="actionAbout"/>
<addaction name="action_quit"/>
</widget>
<widget class="QMenu" name="menu_contacts">
......@@ -328,6 +329,22 @@
</hint>
</hints>
</connection>
<connection>
<sender>actionAbout</sender>
<signal>triggered()</signal>
<receiver>MainWindow</receiver>
<slot>open_about_popup()</slot>
<hints>
<hint type="sourcelabel">
<x>-1</x>
<y>-1</y>
</hint>
<hint type="destinationlabel">
<x>340</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>open_add_account_dialog()</slot>
......@@ -340,6 +357,6 @@
<slot>export_account()</slot>
<slot>open_certification_dialog()</slot>
<slot>set_as_default_account()</slot>
<slot>open_about_dialog()</slot>
<slot>open_about_popup()</slot>
</slots>
</ui>
......@@ -19,6 +19,7 @@ from .password_asker import PasswordAskerDialog
from ..tools.exceptions import NoPeerAvailable
from ..core.account import Account
from ..__init__ import __version__
from cutecoin.gen_resources.about_uic import Ui_AboutPopup
import logging
import requests
......@@ -174,6 +175,31 @@ class MainWindow(QMainWindow, Ui_MainWindow):
dialog.accepted.connect(self.refresh_communities)
dialog.exec_()
def open_about_popup(self):
"""
Open about popup window
"""
aboutDialog = QDialog(self)
aboutUi = Ui_AboutPopup()
aboutUi.setupUi(aboutDialog)
text = """
<h1>Cutecoin</h1>
<p>Python/Qt uCoin client</p>
<p>Version : {:}</p>
<p>License : MIT</p>
<p><b>Authors</b></p>
<p>inso</p>
<p>vit</p>
<p>canercandan</p>
""".format(__version__)
aboutUi.label.setText(text)
aboutDialog.show()
def refresh_wallets(self):
currency_tab = self.currencies_tabwidget.currentWidget()
if currency_tab:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment