diff options
author | Boris Barbulovski <bbarbulovski@gmail.com> | 2014-02-08 08:50:39 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-08 08:00:27 -0800 |
commit | 31611141067d1876a3b1ee2d8bafd64839c476d3 (patch) | |
tree | 51dfb36d2518cc774c5010ef1bbdee05e17c5786 /qt-ui/about.ui | |
parent | 39a11d70923940f45b5e1493dabfa934ec2a79c6 (diff) | |
download | subsurface-31611141067d1876a3b1ee2d8bafd64839c476d3.tar.gz |
SubsurfaceAbout class cleanup.
Main change is that now SubsurfaceAbout doesn't have instance object, but
it constructs and destructs dynamically.
* Remove the static SubsurfaceAbout::instance() class member
* construct/destruct about dialog on demand
* Other small aboutbox cleanups.
Signed-off-by: Boris Barbulovski <bbarbulovski@gmail.com>
ACK-ed-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/about.ui')
-rw-r--r-- | qt-ui/about.ui | 93 |
1 files changed, 58 insertions, 35 deletions
diff --git a/qt-ui/about.ui b/qt-ui/about.ui index 71f0acb0f..0c1735e26 100644 --- a/qt-ui/about.ui +++ b/qt-ui/about.ui @@ -29,22 +29,7 @@ <property name="modal"> <bool>true</bool> </property> - <layout class="QVBoxLayout" name="verticalLayout_2"> - <property name="spacing"> - <number>20</number> - </property> - <property name="leftMargin"> - <number>30</number> - </property> - <property name="topMargin"> - <number>30</number> - </property> - <property name="rightMargin"> - <number>30</number> - </property> - <property name="bottomMargin"> - <number>20</number> - </property> + <layout class="QVBoxLayout" name="verticalLayout" stretch="0,1,0"> <item> <widget class="QLabel" name="subsurfaceIcon"> <property name="text"> @@ -61,7 +46,7 @@ <item> <widget class="QLabel" name="aboutLabel"> <property name="text"> - <string></string> + <string/> </property> <property name="textFormat"> <enum>Qt::RichText</enum> @@ -75,17 +60,55 @@ </widget> </item> <item> - <widget class="QDialogButtonBox" name="buttonBox"> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="standardButtons"> - <set>QDialogButtonBox::Close</set> - </property> - <property name="centerButtons"> - <bool>true</bool> - </property> - </widget> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <spacer name="horizontalSpacer"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="licenseButton"> + <property name="text"> + <string>&License</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="websiteButton"> + <property name="text"> + <string>&Website</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="closeButton"> + <property name="text"> + <string>&Close</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_2"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> </item> </layout> </widget> @@ -94,18 +117,18 @@ </resources> <connections> <connection> - <sender>buttonBox</sender> - <signal>rejected()</signal> + <sender>closeButton</sender> + <signal>clicked()</signal> <receiver>SubsurfaceAbout</receiver> - <slot>close()</slot> + <slot>accept()</slot> <hints> <hint type="sourcelabel"> - <x>227</x> - <y>437</y> + <x>290</x> + <y>411</y> </hint> <hint type="destinationlabel"> - <x>227</x> - <y>224</y> + <x>340</x> + <y>409</y> </hint> </hints> </connection> |