1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 15:27:54 +00:00

- Improved about dialog a lot. (broke compatibility with Qt4.2, arnaud will fix this soon)

- Added a missing file for brazilian translation
This commit is contained in:
Christophe Dumez 2007-08-02 15:24:52 +00:00
parent be11acb31b
commit 6d7c15aa33
6 changed files with 338 additions and 281 deletions

BIN
src/Icons/mascot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -1,7 +1,5 @@
<ui version="4.0" > <ui version="4.0" >
<author>Christophe Dumez</author> <author>Christophe Dumez</author>
<comment></comment>
<exportmacro></exportmacro>
<class>AboutDlg</class> <class>AboutDlg</class>
<widget class="QDialog" name="AboutDlg" > <widget class="QDialog" name="AboutDlg" >
<property name="geometry" > <property name="geometry" >
@ -12,24 +10,54 @@
<height>320</height> <height>320</height>
</rect> </rect>
</property> </property>
<property name="minimumSize" >
<size>
<width>504</width>
<height>320</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>504</width>
<height>320</height>
</size>
</property>
<property name="windowTitle" > <property name="windowTitle" >
<string>About qBittorrent</string> <string>About qBittorrent</string>
</property> </property>
<layout class="QVBoxLayout" > <layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" > <property name="spacing" >
<number>6</number> <number>6</number>
</property> </property>
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<item> <item>
<layout class="QHBoxLayout" > <layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" > <property name="spacing" >
<number>6</number> <number>6</number>
</property> </property>
<property name="leftMargin" >
<number>0</number>
</property>
<property name="topMargin" >
<number>0</number>
</property>
<property name="rightMargin" >
<number>0</number>
</property>
<property name="bottomMargin" >
<number>0</number>
</property>
<item> <item>
<widget class="QLabel" name="logo" > <widget class="QLabel" name="logo" >
<property name="text" > <property name="text" >
@ -40,9 +68,7 @@
<item> <item>
<widget class="QLabel" name="lb_name" > <widget class="QLabel" name="lb_name" >
<property name="sizePolicy" > <property name="sizePolicy" >
<sizepolicy> <sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
<hsizetype>7</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -66,289 +92,290 @@
<attribute name="title" > <attribute name="title" >
<string>About</string> <string>About</string>
</attribute> </attribute>
<layout class="QVBoxLayout" > <widget class="QLabel" name="mascot_lbl" >
<property name="margin" > <property name="geometry" >
<number>9</number> <rect>
<x>380</x>
<y>70</y>
<width>94</width>
<height>162</height>
</rect>
</property> </property>
<property name="spacing" > <property name="text" >
<number>6</number> <string/>
</property> </property>
<item> </widget>
<widget class="QWidget" name="widget1" > <widget class="QLabel" name="lb_about" >
<layout class="QVBoxLayout" > <property name="geometry" >
<property name="margin" > <rect>
<number>0</number> <x>0</x>
</property> <y>50</y>
<property name="spacing" > <width>481</width>
<number>6</number> <height>102</height>
</property> </rect>
<item> </property>
<spacer> <property name="sizePolicy" >
<property name="orientation" > <sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
<enum>Qt::Vertical</enum> <horstretch>0</horstretch>
</property> <verstretch>0</verstretch>
<property name="sizeType" > </sizepolicy>
<enum>QSizePolicy::Expanding</enum> </property>
</property> <property name="text" >
<property name="sizeHint" > <string>A bittorrent client using Qt4 and libtorrent, programmed in C++.&lt;br>
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="lb_about" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>7</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>A bittorrent client using Qt4 and libtorrent, programmed in C++.&lt;br>
&lt;br> &lt;br>
Copyright © 2006 by Christophe Dumez&lt;br> Copyright © 2006 by Christophe Dumez&lt;br>
&lt;br> &lt;u>Home Page:&lt;/u> &lt;i>http://www.qbittorrent.org&lt;/i>&lt;br></string> &lt;br> &lt;u>Home Page:&lt;/u> &lt;i>http://www.qbittorrent.org&lt;/i>&lt;br></string>
</property> </property>
<property name="textFormat" > <property name="textFormat" >
<enum>Qt::RichText</enum> <enum>Qt::RichText</enum>
</property> </property>
<property name="alignment" > <property name="alignment" >
<set>Qt::AlignCenter</set> <set>Qt::AlignCenter</set>
</property> </property>
</widget> </widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
</layout>
</widget> </widget>
<widget class="QWidget" name="tab3" > <widget class="QWidget" name="tab3" >
<attribute name="title" > <attribute name="title" >
<string>Author</string> <string>Author</string>
</attribute> </attribute>
<layout class="QVBoxLayout" > <layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" > <property name="spacing" >
<number>6</number> <number>6</number>
</property> </property>
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<item> <item>
<widget class="QFrame" name="te_authors" > <widget class="QFrame" name="te_authors" >
<layout class="QHBoxLayout" > <layout class="QHBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item> <item>
<widget class="QSplitter" name="splitter" > <spacer>
<property name="orientation" > <property name="orientation" >
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<widget class="QWidget" name="widget" > <property name="sizeType" >
<layout class="QHBoxLayout" > <enum>QSizePolicy::Preferred</enum>
<property name="margin" > </property>
<number>0</number> <property name="sizeHint" >
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QVBoxLayout" >
<property name="spacing" >
<number>6</number>
</property>
<property name="leftMargin" >
<number>0</number>
</property>
<property name="topMargin" >
<number>0</number>
</property>
<property name="rightMargin" >
<number>0</number>
</property>
<property name="bottomMargin" >
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label_3" >
<property name="font" >
<font>
<family>Sans Serif</family>
<pointsize>9</pointsize>
<weight>50</weight>
<italic>false</italic>
<bold>false</bold>
<underline>true</underline>
<strikeout>false</strikeout>
</font>
</property> </property>
<property name="spacing" > <property name="text" >
<number>6</number> <string>Name:</string>
</property> </property>
<item> </widget>
<layout class="QVBoxLayout" > </item>
<property name="margin" > <item>
<number>0</number> <widget class="QLabel" name="label_4" >
</property> <property name="font" >
<property name="spacing" > <font>
<number>6</number> <family>Sans Serif</family>
</property> <pointsize>9</pointsize>
<item> <weight>50</weight>
<widget class="QLabel" name="label_3" > <italic>false</italic>
<property name="font" > <bold>false</bold>
<font> <underline>true</underline>
<family>Sans Serif</family> <strikeout>false</strikeout>
<pointsize>9</pointsize> </font>
<weight>50</weight> </property>
<italic>false</italic> <property name="text" >
<bold>false</bold> <string>Country:</string>
<underline>true</underline> </property>
<strikeout>false</strikeout> </widget>
</font> </item>
</property> <item>
<property name="text" > <widget class="QLabel" name="lbl_birthday" >
<string>Name:</string> <property name="font" >
</property> <font>
</widget> <family>Sans Serif</family>
</item> <pointsize>9</pointsize>
<item> <weight>50</weight>
<widget class="QLabel" name="label_4" > <italic>false</italic>
<property name="font" > <bold>false</bold>
<font> <underline>true</underline>
<family>Sans Serif</family> <strikeout>false</strikeout>
<pointsize>9</pointsize> </font>
<weight>50</weight> </property>
<italic>false</italic> <property name="text" >
<bold>false</bold> <string>Birthday:</string>
<underline>true</underline> </property>
<strikeout>false</strikeout> </widget>
</font> </item>
</property> <item>
<property name="text" > <widget class="QLabel" name="lbl_occupation" >
<string>Country:</string> <property name="font" >
</property> <font>
</widget> <family>Sans Serif</family>
</item> <pointsize>9</pointsize>
<item> <weight>50</weight>
<widget class="QLabel" name="lbl_birthday" > <italic>false</italic>
<property name="font" > <bold>false</bold>
<font> <underline>true</underline>
<family>Sans Serif</family> <strikeout>false</strikeout>
<pointsize>9</pointsize> </font>
<weight>50</weight> </property>
<italic>false</italic> <property name="text" >
<bold>false</bold> <string>Occupation:</string>
<underline>true</underline> </property>
<strikeout>false</strikeout> </widget>
</font> </item>
</property> <item>
<property name="text" > <widget class="QLabel" name="label_5" >
<string>Birthday:</string> <property name="font" >
</property> <font>
</widget> <family>Sans Serif</family>
</item> <pointsize>9</pointsize>
<item> <weight>50</weight>
<widget class="QLabel" name="lbl_occupation" > <italic>false</italic>
<property name="font" > <bold>false</bold>
<font> <underline>true</underline>
<family>Sans Serif</family> <strikeout>false</strikeout>
<pointsize>9</pointsize> </font>
<weight>50</weight> </property>
<italic>false</italic> <property name="text" >
<bold>false</bold> <string>E-mail:</string>
<underline>true</underline> </property>
<strikeout>false</strikeout> </widget>
</font> </item>
</property> <item>
<property name="text" > <widget class="QLabel" name="label_8" >
<string>Occupation:</string> <property name="font" >
</property> <font>
</widget> <family>Sans Serif</family>
</item> <pointsize>9</pointsize>
<item> <weight>50</weight>
<widget class="QLabel" name="label_5" > <italic>false</italic>
<property name="font" > <bold>false</bold>
<font> <underline>true</underline>
<family>Sans Serif</family> <strikeout>false</strikeout>
<pointsize>9</pointsize> </font>
<weight>50</weight> </property>
<italic>false</italic> <property name="text" >
<bold>false</bold> <string>Home page:</string>
<underline>true</underline> </property>
<strikeout>false</strikeout> </widget>
</font> </item>
</property> </layout>
<property name="text" > </item>
<string>E-mail:</string> <item>
</property> <spacer>
</widget> <property name="orientation" >
</item> <enum>Qt::Horizontal</enum>
<item> </property>
<widget class="QLabel" name="label_8" > <property name="sizeType" >
<property name="font" > <enum>QSizePolicy::Preferred</enum>
<font> </property>
<family>Sans Serif</family> <property name="sizeHint" >
<pointsize>9</pointsize> <size>
<weight>50</weight> <width>20</width>
<italic>false</italic> <height>20</height>
<bold>false</bold> </size>
<underline>true</underline> </property>
<strikeout>false</strikeout> </spacer>
</font> </item>
</property> <item>
<property name="text" > <layout class="QVBoxLayout" >
<string>Home page:</string> <property name="spacing" >
</property> <number>6</number>
</widget> </property>
</item> <property name="leftMargin" >
</layout> <number>0</number>
</item> </property>
<item> <property name="topMargin" >
<layout class="QVBoxLayout" > <number>0</number>
<property name="margin" > </property>
<number>0</number> <property name="rightMargin" >
</property> <number>0</number>
<property name="spacing" > </property>
<number>6</number> <property name="bottomMargin" >
</property> <number>0</number>
<item> </property>
<widget class="QLabel" name="label_2" > <item>
<property name="text" > <widget class="QLabel" name="label_2" >
<string>Christophe Dumez</string> <property name="text" >
</property> <string>Christophe Dumez</string>
</widget> </property>
</item> </widget>
<item> </item>
<widget class="QLabel" name="label_7" > <item>
<property name="text" > <widget class="QLabel" name="label_7" >
<string>France</string> <property name="text" >
</property> <string>France</string>
</widget> </property>
</item> </widget>
<item> </item>
<widget class="QLabel" name="label_11" > <item>
<property name="text" > <widget class="QLabel" name="label_11" >
<string>03/05/1985</string> <property name="text" >
</property> <string>03/05/1985</string>
</widget> </property>
</item> </widget>
<item> </item>
<widget class="QLabel" name="label_10" > <item>
<property name="text" > <widget class="QLabel" name="label_10" >
<string>Student in computer science</string> <property name="text" >
</property> <string>Student in computer science</string>
</widget> </property>
</item> </widget>
<item> </item>
<widget class="QLabel" name="label_6" > <item>
<property name="text" > <widget class="QLabel" name="label_6" >
<string>chris@qbittorrent.org</string> <property name="text" >
</property> <string>chris@qbittorrent.org</string>
</widget> </property>
</item> </widget>
<item> </item>
<widget class="QLabel" name="label_9" > <item>
<property name="text" > <widget class="QLabel" name="label_9" >
<string>http://www.dchris.eu</string> <property name="text" >
</property> <string>http://www.dchris.eu</string>
</widget> </property>
</item> </widget>
</layout> </item>
</item> </layout>
</layout>
</widget>
</widget>
</item> </item>
<item> <item>
<spacer> <spacer>
@ -373,12 +400,21 @@ Copyright © 2006 by Christophe Dumez&lt;br>
<string>Thanks To</string> <string>Thanks To</string>
</attribute> </attribute>
<layout class="QVBoxLayout" > <layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" > <property name="spacing" >
<number>6</number> <number>6</number>
</property> </property>
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<item> <item>
<widget class="QTextBrowser" name="te_thanks" /> <widget class="QTextBrowser" name="te_thanks" />
</item> </item>
@ -389,12 +425,21 @@ Copyright © 2006 by Christophe Dumez&lt;br>
<string>Translation</string> <string>Translation</string>
</attribute> </attribute>
<layout class="QVBoxLayout" > <layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" > <property name="spacing" >
<number>6</number> <number>6</number>
</property> </property>
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<item> <item>
<widget class="QTextBrowser" name="te_translation" > <widget class="QTextBrowser" name="te_translation" >
<property name="lineWrapMode" > <property name="lineWrapMode" >
@ -409,12 +454,21 @@ Copyright © 2006 by Christophe Dumez&lt;br>
<string>License</string> <string>License</string>
</attribute> </attribute>
<layout class="QVBoxLayout" > <layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" > <property name="spacing" >
<number>6</number> <number>6</number>
</property> </property>
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<item> <item>
<widget class="QTextBrowser" name="te_license" /> <widget class="QTextBrowser" name="te_license" />
</item> </item>
@ -425,7 +479,6 @@ Copyright © 2006 by Christophe Dumez&lt;br>
</layout> </layout>
</widget> </widget>
<layoutdefault spacing="6" margin="11" /> <layoutdefault spacing="6" margin="11" />
<pixmapfunction></pixmapfunction>
<resources/> <resources/>
<connections/> <connections/>
</ui> </ui>

View File

@ -34,6 +34,7 @@ class about : public QDialog, private Ui::AboutDlg{
setAttribute(Qt::WA_DeleteOnClose); setAttribute(Qt::WA_DeleteOnClose);
// Set icons // Set icons
logo->setPixmap(QPixmap(QString::fromUtf8(":/Icons/qbittorrent32.png"))); logo->setPixmap(QPixmap(QString::fromUtf8(":/Icons/qbittorrent32.png")));
mascot_lbl->setPixmap(QPixmap(QString::fromUtf8(":/Icons/mascot.png")));
//Title //Title
lb_name->setText("<b><h1>"+tr("qBittorrent")+" "VERSION"</h1></b>"); lb_name->setText("<b><h1>"+tr("qBittorrent")+" "VERSION"</h1></b>");
// Thanks // Thanks

View File

@ -34,6 +34,7 @@
<file>Icons/sphere.png</file> <file>Icons/sphere.png</file>
<file>Icons/sphere2.png</file> <file>Icons/sphere2.png</file>
<file>Icons/password.png</file> <file>Icons/password.png</file>
<file>Icons/mascot.png</file>
<file>Icons/unavailable.png</file> <file>Icons/unavailable.png</file>
<file>Icons/flags/portugal.png</file> <file>Icons/flags/portugal.png</file>
<file>Icons/flags/france.png</file> <file>Icons/flags/france.png</file>
@ -60,6 +61,7 @@
<file>Icons/flags/denmark.png</file> <file>Icons/flags/denmark.png</file>
<file>Icons/flags/japan.png</file> <file>Icons/flags/japan.png</file>
<file>Icons/flags/hungary.png</file> <file>Icons/flags/hungary.png</file>
<file>Icons/flags/brazil.png</file>
<file>Icons/skin/properties.png</file> <file>Icons/skin/properties.png</file>
<file>Icons/skin/play_all.png</file> <file>Icons/skin/play_all.png</file>
<file>Icons/skin/remove.png</file> <file>Icons/skin/remove.png</file>

View File

@ -25,5 +25,6 @@
<file>lang/qbittorrent_da.qm</file> <file>lang/qbittorrent_da.qm</file>
<file>lang/qbittorrent_ja.qm</file> <file>lang/qbittorrent_ja.qm</file>
<file>lang/qbittorrent_hu.qm</file> <file>lang/qbittorrent_hu.qm</file>
<file>lang/qbittorrent_pt_BR.qm</file>
</qresource> </qresource>
</RCC> </RCC>

Binary file not shown.