GUI: Improve About-dialog layout.

Add vertical spacer above texts to that icon box becomes narrow and text box wide.
This commit is contained in:
Kimmo Varis 2009-07-12 14:22:56 +03:00
parent 17a27bd5e6
commit dfdbf85730
6 changed files with 190 additions and 177 deletions

View File

@ -1,152 +1,165 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0"> <ui version="4.0">
<class>About</class> <class>About</class>
<widget class="QDialog" name="About"> <widget class="QDialog" name="About">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>478</width> <width>478</width>
<height>300</height> <height>300</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>About Cppcheck</string> <string>About Cppcheck</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_3"> <layout class="QVBoxLayout" name="verticalLayout_3">
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout"> <layout class="QHBoxLayout" name="horizontalLayout">
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout_2"> <layout class="QVBoxLayout" name="verticalLayout_2">
<item> <item>
<widget class="QLabel" name="mIcon"> <widget class="QLabel" name="mIcon">
<property name="text"> <property name="text">
<string/> <string/>
</property> </property>
<property name="pixmap"> <property name="pixmap">
<pixmap resource="gui.qrc">:/icon.png</pixmap> <pixmap resource="gui.qrc">:/icon.png</pixmap>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<spacer name="verticalSpacer"> <spacer name="verticalSpacer">
<property name="orientation"> <property name="orientation">
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
</property> </property>
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0">
<size> <size>
<width>20</width> <width>20</width>
<height>40</height> <height>40</height>
</size> </size>
</property> </property>
</spacer> </spacer>
</item> </item>
</layout> </layout>
</item> </item>
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<item> <item>
<widget class="QLabel" name="mVersion"> <spacer name="horizontalSpacer">
<property name="text"> <property name="orientation">
<string>Version %1</string> <enum>Qt::Horizontal</enum>
</property> </property>
</widget> <property name="sizeHint" stdset="0">
</item> <size>
<item> <width>40</width>
<widget class="QLabel" name="mName"> <height>20</height>
<property name="text"> </size>
<string>Cppcheck - A tool for static C/C++ code analysis.</string> </property>
</property> </spacer>
<property name="wordWrap"> </item>
<bool>true</bool> <item>
</property> <widget class="QLabel" name="mVersion">
</widget> <property name="text">
</item> <string>Version %1</string>
<item> </property>
<widget class="QLabel" name="mCopyright"> </widget>
<property name="text"> </item>
<string>Copyright (C) 2007-2009 Daniel Marjamäki and cppcheck team.</string> <item>
</property> <widget class="QLabel" name="mName">
<property name="wordWrap"> <property name="text">
<bool>true</bool> <string>Cppcheck - A tool for static C/C++ code analysis.</string>
</property> </property>
</widget> <property name="wordWrap">
</item> <bool>true</bool>
<item> </property>
<widget class="QLabel" name="mLicense"> </widget>
<property name="text"> </item>
<string>This program is licensed under the terms <item>
of the GNU General Public License version 3</string> <widget class="QLabel" name="mCopyright">
</property> <property name="text">
<property name="wordWrap"> <string>Copyright (C) 2007-2009 Daniel Marjamäki and cppcheck team.</string>
<bool>true</bool> </property>
</property> <property name="wordWrap">
</widget> <bool>true</bool>
</item> </property>
<item> </widget>
<widget class="QLabel" name="mHomepage"> </item>
<property name="text"> <item>
<string>Visit Cppcheck homepage at %1</string> <widget class="QLabel" name="mLicense">
</property> <property name="text">
<property name="wordWrap"> <string>This program is licensed under the terms
<bool>true</bool> of the GNU General Public License version 3</string>
</property> </property>
<property name="openExternalLinks"> <property name="wordWrap">
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
</layout> <item>
</item> <widget class="QLabel" name="mHomepage">
</layout> <property name="text">
</item> <string>Visit Cppcheck homepage at %1</string>
<item> </property>
<widget class="QDialogButtonBox" name="mButtons"> <property name="wordWrap">
<property name="orientation"> <bool>true</bool>
<enum>Qt::Horizontal</enum> </property>
</property> <property name="openExternalLinks">
<property name="standardButtons"> <bool>true</bool>
<set>QDialogButtonBox::Ok</set> </property>
</property> </widget>
</widget> </item>
</item> </layout>
</layout> </item>
</widget> </layout>
<resources> </item>
<include location="gui.qrc"/> <item>
</resources> <widget class="QDialogButtonBox" name="mButtons">
<connections> <property name="orientation">
<connection> <enum>Qt::Horizontal</enum>
<sender>mButtons</sender> </property>
<signal>accepted()</signal> <property name="standardButtons">
<receiver>About</receiver> <set>QDialogButtonBox::Ok</set>
<slot>accept()</slot> </property>
<hints> </widget>
<hint type="sourcelabel"> </item>
<x>248</x> </layout>
<y>254</y> </widget>
</hint> <resources>
<hint type="destinationlabel"> <include location="gui.qrc"/>
<x>157</x> </resources>
<y>274</y> <connections>
</hint> <connection>
</hints> <sender>mButtons</sender>
</connection> <signal>accepted()</signal>
<connection> <receiver>About</receiver>
<sender>mButtons</sender> <slot>accept()</slot>
<signal>rejected()</signal> <hints>
<receiver>About</receiver> <hint type="sourcelabel">
<slot>reject()</slot> <x>248</x>
<hints> <y>254</y>
<hint type="sourcelabel"> </hint>
<x>316</x> <hint type="destinationlabel">
<y>260</y> <x>157</x>
</hint> <y>274</y>
<hint type="destinationlabel"> </hint>
<x>286</x> </hints>
<y>274</y> </connection>
</hint> <connection>
</hints> <sender>mButtons</sender>
</connection> <signal>rejected()</signal>
</connections> <receiver>About</receiver>
</ui> <slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -9,28 +9,28 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="about.ui" line="51"/> <location filename="about.ui" line="64"/>
<source>Version %1</source> <source>Version %1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="about.ui" line="58"/> <location filename="about.ui" line="71"/>
<source>Cppcheck - A tool for static C/C++ code analysis.</source> <source>Cppcheck - A tool for static C/C++ code analysis.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message utf8="true"> <message utf8="true">
<location filename="about.ui" line="65"/> <location filename="about.ui" line="81"/>
<source>Copyright (C) 2007-2009 Daniel Marjamäki and cppcheck team.</source> <source>Copyright (C) 2007-2009 Daniel Marjamäki and cppcheck team.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="about.ui" line="72"/> <location filename="about.ui" line="91"/>
<source>This program is licensed under the terms <source>This program is licensed under the terms
of the GNU General Public License version 3</source> of the GNU General Public License version 3</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="about.ui" line="83"/> <location filename="about.ui" line="102"/>
<source>Visit Cppcheck homepage at %1</source> <source>Visit Cppcheck homepage at %1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

View File

@ -9,29 +9,29 @@
<translation>About Cppcheck</translation> <translation>About Cppcheck</translation>
</message> </message>
<message> <message>
<location filename="about.ui" line="51"/> <location filename="about.ui" line="64"/>
<source>Version %1</source> <source>Version %1</source>
<translation>Version %1</translation> <translation>Version %1</translation>
</message> </message>
<message> <message>
<location filename="about.ui" line="58"/> <location filename="about.ui" line="71"/>
<source>Cppcheck - A tool for static C/C++ code analysis.</source> <source>Cppcheck - A tool for static C/C++ code analysis.</source>
<translation>Cppcheck - A tool for static C/C++ code analysis.</translation> <translation>Cppcheck - A tool for static C/C++ code analysis.</translation>
</message> </message>
<message utf8="true"> <message utf8="true">
<location filename="about.ui" line="65"/> <location filename="about.ui" line="81"/>
<source>Copyright (C) 2007-2009 Daniel Marjamäki and cppcheck team.</source> <source>Copyright (C) 2007-2009 Daniel Marjamäki and cppcheck team.</source>
<translation>Copyright (C) 2007-2009 Daniel Marjamäki and cppcheck team.</translation> <translation>Copyright (C) 2007-2009 Daniel Marjamäki and cppcheck team.</translation>
</message> </message>
<message> <message>
<location filename="about.ui" line="72"/> <location filename="about.ui" line="91"/>
<source>This program is licensed under the terms <source>This program is licensed under the terms
of the GNU General Public License version 3</source> of the GNU General Public License version 3</source>
<translation>This program is licensed under the terms <translation>This program is licensed under the terms
of the GNU General Public License version 3</translation> of the GNU General Public License version 3</translation>
</message> </message>
<message> <message>
<location filename="about.ui" line="83"/> <location filename="about.ui" line="102"/>
<source>Visit Cppcheck homepage at %1</source> <source>Visit Cppcheck homepage at %1</source>
<translation>Visit Cppcheck homepage at %1</translation> <translation>Visit Cppcheck homepage at %1</translation>
</message> </message>

View File

@ -9,29 +9,29 @@
<translation>Tietoa ohjelmasta Cppcheck</translation> <translation>Tietoa ohjelmasta Cppcheck</translation>
</message> </message>
<message> <message>
<location filename="about.ui" line="51"/> <location filename="about.ui" line="64"/>
<source>Version %1</source> <source>Version %1</source>
<translation>Versio %1</translation> <translation>Versio %1</translation>
</message> </message>
<message> <message>
<location filename="about.ui" line="58"/> <location filename="about.ui" line="71"/>
<source>Cppcheck - A tool for static C/C++ code analysis.</source> <source>Cppcheck - A tool for static C/C++ code analysis.</source>
<translation>Cppcheck - Työkalu C/C++ koodin staattiseen analysointiin.</translation> <translation>Cppcheck - Työkalu C/C++ koodin staattiseen analysointiin.</translation>
</message> </message>
<message utf8="true"> <message utf8="true">
<location filename="about.ui" line="65"/> <location filename="about.ui" line="81"/>
<source>Copyright (C) 2007-2009 Daniel Marjamäki and cppcheck team.</source> <source>Copyright (C) 2007-2009 Daniel Marjamäki and cppcheck team.</source>
<translation>Copyright (C) 2007-2009 Daniel Marjamäki ja cppcheck tiimi.</translation> <translation>Copyright (C) 2007-2009 Daniel Marjamäki ja cppcheck tiimi.</translation>
</message> </message>
<message> <message>
<location filename="about.ui" line="72"/> <location filename="about.ui" line="91"/>
<source>This program is licensed under the terms <source>This program is licensed under the terms
of the GNU General Public License version 3</source> of the GNU General Public License version 3</source>
<translation>Tämä ohjelma on lisensoitu GNU General <translation>Tämä ohjelma on lisensoitu GNU General
Public lisenssin version 3 alaisuuteen</translation> Public lisenssin version 3 alaisuuteen</translation>
</message> </message>
<message> <message>
<location filename="about.ui" line="83"/> <location filename="about.ui" line="102"/>
<source>Visit Cppcheck homepage at %1</source> <source>Visit Cppcheck homepage at %1</source>
<translation>Cppcheckin kotisivu löytyy osoitteesta %1</translation> <translation>Cppcheckin kotisivu löytyy osoitteesta %1</translation>
</message> </message>

View File

@ -9,28 +9,28 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="about.ui" line="51"/> <location filename="about.ui" line="64"/>
<source>Version %1</source> <source>Version %1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="about.ui" line="58"/> <location filename="about.ui" line="71"/>
<source>Cppcheck - A tool for static C/C++ code analysis.</source> <source>Cppcheck - A tool for static C/C++ code analysis.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message utf8="true"> <message utf8="true">
<location filename="about.ui" line="65"/> <location filename="about.ui" line="81"/>
<source>Copyright (C) 2007-2009 Daniel Marjamäki and cppcheck team.</source> <source>Copyright (C) 2007-2009 Daniel Marjamäki and cppcheck team.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="about.ui" line="72"/> <location filename="about.ui" line="91"/>
<source>This program is licensed under the terms <source>This program is licensed under the terms
of the GNU General Public License version 3</source> of the GNU General Public License version 3</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="about.ui" line="83"/> <location filename="about.ui" line="102"/>
<source>Visit Cppcheck homepage at %1</source> <source>Visit Cppcheck homepage at %1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

View File

@ -9,29 +9,29 @@
<translation>Om Cppcheck</translation> <translation>Om Cppcheck</translation>
</message> </message>
<message> <message>
<location filename="about.ui" line="51"/> <location filename="about.ui" line="64"/>
<source>Version %1</source> <source>Version %1</source>
<translation>Version %1</translation> <translation>Version %1</translation>
</message> </message>
<message> <message>
<location filename="about.ui" line="58"/> <location filename="about.ui" line="71"/>
<source>Cppcheck - A tool for static C/C++ code analysis.</source> <source>Cppcheck - A tool for static C/C++ code analysis.</source>
<translation>Cppcheck - Ett verktyg för statisk analys av C/C++ kod.</translation> <translation>Cppcheck - Ett verktyg för statisk analys av C/C++ kod.</translation>
</message> </message>
<message utf8="true"> <message utf8="true">
<location filename="about.ui" line="65"/> <location filename="about.ui" line="81"/>
<source>Copyright (C) 2007-2009 Daniel Marjamäki and cppcheck team.</source> <source>Copyright (C) 2007-2009 Daniel Marjamäki and cppcheck team.</source>
<translation>Copyright (C) 2007-2009 Daniel Marjamäki and cppcheck team.</translation> <translation>Copyright (C) 2007-2009 Daniel Marjamäki and cppcheck team.</translation>
</message> </message>
<message> <message>
<location filename="about.ui" line="72"/> <location filename="about.ui" line="91"/>
<source>This program is licensed under the terms <source>This program is licensed under the terms
of the GNU General Public License version 3</source> of the GNU General Public License version 3</source>
<translation>This program is licensed under the terms <translation>This program is licensed under the terms
of the GNU General Public License version 3</translation> of the GNU General Public License version 3</translation>
</message> </message>
<message> <message>
<location filename="about.ui" line="83"/> <location filename="about.ui" line="102"/>
<source>Visit Cppcheck homepage at %1</source> <source>Visit Cppcheck homepage at %1</source>
<translation>Hemsida: %1</translation> <translation>Hemsida: %1</translation>
</message> </message>