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"?>
<ui version="4.0">
<class>About</class>
<widget class="QDialog" name="About">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>478</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>About Cppcheck</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QLabel" name="mIcon">
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap resource="gui.qrc">:/icon.png</pixmap>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="mVersion">
<property name="text">
<string>Version %1</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="mName">
<property name="text">
<string>Cppcheck - A tool for static C/C++ code analysis.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="mCopyright">
<property name="text">
<string>Copyright (C) 2007-2009 Daniel Marjamäki and cppcheck team.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="mLicense">
<property name="text">
<string>This program is licensed under the terms
of the GNU General Public License version 3</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="mHomepage">
<property name="text">
<string>Visit Cppcheck homepage at %1</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item>
<widget class="QDialogButtonBox" name="mButtons">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources>
<include location="gui.qrc"/>
</resources>
<connections>
<connection>
<sender>mButtons</sender>
<signal>accepted()</signal>
<receiver>About</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>
<connection>
<sender>mButtons</sender>
<signal>rejected()</signal>
<receiver>About</receiver>
<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>
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>About</class>
<widget class="QDialog" name="About">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>478</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>About Cppcheck</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QLabel" name="mIcon">
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap resource="gui.qrc">:/icon.png</pixmap>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout">
<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="QLabel" name="mVersion">
<property name="text">
<string>Version %1</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="mName">
<property name="text">
<string>Cppcheck - A tool for static C/C++ code analysis.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="mCopyright">
<property name="text">
<string>Copyright (C) 2007-2009 Daniel Marjamäki and cppcheck team.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="mLicense">
<property name="text">
<string>This program is licensed under the terms
of the GNU General Public License version 3</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="mHomepage">
<property name="text">
<string>Visit Cppcheck homepage at %1</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item>
<widget class="QDialogButtonBox" name="mButtons">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources>
<include location="gui.qrc"/>
</resources>
<connections>
<connection>
<sender>mButtons</sender>
<signal>accepted()</signal>
<receiver>About</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>
<connection>
<sender>mButtons</sender>
<signal>rejected()</signal>
<receiver>About</receiver>
<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>
</message>
<message>
<location filename="about.ui" line="51"/>
<location filename="about.ui" line="64"/>
<source>Version %1</source>
<translation type="unfinished"></translation>
</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>
<translation type="unfinished"></translation>
</message>
<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>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="about.ui" line="72"/>
<location filename="about.ui" line="91"/>
<source>This program is licensed under the terms
of the GNU General Public License version 3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="about.ui" line="83"/>
<location filename="about.ui" line="102"/>
<source>Visit Cppcheck homepage at %1</source>
<translation type="unfinished"></translation>
</message>

View File

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

View File

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

View File

@ -9,28 +9,28 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="about.ui" line="51"/>
<location filename="about.ui" line="64"/>
<source>Version %1</source>
<translation type="unfinished"></translation>
</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>
<translation type="unfinished"></translation>
</message>
<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>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="about.ui" line="72"/>
<location filename="about.ui" line="91"/>
<source>This program is licensed under the terms
of the GNU General Public License version 3</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="about.ui" line="83"/>
<location filename="about.ui" line="102"/>
<source>Visit Cppcheck homepage at %1</source>
<translation type="unfinished"></translation>
</message>

View File

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