Browse Source

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

- Added a missing file for brazilian translation
adaptive-webui-19844
Christophe Dumez 18 years ago
parent
commit
6d7c15aa33
  1. BIN
      src/Icons/mascot.png
  2. 257
      src/about.ui
  3. 1
      src/about_imp.h
  4. 2
      src/icons.qrc
  5. 1
      src/lang.qrc
  6. BIN
      src/lang/qbittorrent_pt_BR.qm

BIN
src/Icons/mascot.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

257
src/about.ui

@ -1,7 +1,5 @@ @@ -1,7 +1,5 @@
<ui version="4.0" >
<author>Christophe Dumez</author>
<comment></comment>
<exportmacro></exportmacro>
<class>AboutDlg</class>
<widget class="QDialog" name="AboutDlg" >
<property name="geometry" >
@ -12,24 +10,54 @@ @@ -12,24 +10,54 @@
<height>320</height>
</rect>
</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" >
<string>About qBittorrent</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</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>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<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="logo" >
<property name="text" >
@ -40,9 +68,7 @@ @@ -40,9 +68,7 @@
<item>
<widget class="QLabel" name="lb_name" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>5</vsizetype>
<sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
@ -66,44 +92,30 @@ @@ -66,44 +92,30 @@
<attribute name="title" >
<string>About</string>
</attribute>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QWidget" name="widget1" >
<layout class="QVBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Expanding</enum>
<widget class="QLabel" name="mascot_lbl" >
<property name="geometry" >
<rect>
<x>380</x>
<y>70</y>
<width>94</width>
<height>162</height>
</rect>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>40</height>
</size>
<property name="text" >
<string/>
</property>
</spacer>
</item>
<item>
</widget>
<widget class="QLabel" name="lb_about" >
<property name="geometry" >
<rect>
<x>0</x>
<y>50</y>
<width>481</width>
<height>102</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>7</vsizetype>
<sizepolicy vsizetype="Expanding" hsizetype="Expanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
@ -121,69 +133,63 @@ Copyright © 2006 by Christophe Dumez&lt;br> @@ -121,69 +133,63 @@ Copyright © 2006 by Christophe Dumez&lt;br>
<set>Qt::AlignCenter</set>
</property>
</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 class="QWidget" name="tab3" >
<attribute name="title" >
<string>Author</string>
</attribute>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QFrame" name="te_authors" >
<layout class="QHBoxLayout" >
<property name="margin" >
<property name="leftMargin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<item>
<widget class="QFrame" name="te_authors" >
<layout class="QHBoxLayout" >
<item>
<widget class="QSplitter" name="splitter" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<widget class="QWidget" name="widget" >
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
<property name="sizeType" >
<enum>QSizePolicy::Preferred</enum>
</property>
<property name="spacing" >
<number>6</number>
<property name="sizeHint" >
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<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" >
@ -295,13 +301,38 @@ Copyright © 2006 by Christophe Dumez&lt;br> @@ -295,13 +301,38 @@ Copyright © 2006 by Christophe Dumez&lt;br>
</layout>
</item>
<item>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>0</number>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Preferred</enum>
</property>
<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_2" >
<property name="text" >
@ -346,10 +377,6 @@ Copyright © 2006 by Christophe Dumez&lt;br> @@ -346,10 +377,6 @@ Copyright © 2006 by Christophe Dumez&lt;br>
</item>
</layout>
</item>
</layout>
</widget>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
@ -373,12 +400,21 @@ Copyright © 2006 by Christophe Dumez&lt;br> @@ -373,12 +400,21 @@ Copyright © 2006 by Christophe Dumez&lt;br>
<string>Thanks To</string>
</attribute>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</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>
<widget class="QTextBrowser" name="te_thanks" />
</item>
@ -389,12 +425,21 @@ Copyright © 2006 by Christophe Dumez&lt;br> @@ -389,12 +425,21 @@ Copyright © 2006 by Christophe Dumez&lt;br>
<string>Translation</string>
</attribute>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</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>
<widget class="QTextBrowser" name="te_translation" >
<property name="lineWrapMode" >
@ -409,12 +454,21 @@ Copyright © 2006 by Christophe Dumez&lt;br> @@ -409,12 +454,21 @@ Copyright © 2006 by Christophe Dumez&lt;br>
<string>License</string>
</attribute>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</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>
<widget class="QTextBrowser" name="te_license" />
</item>
@ -425,7 +479,6 @@ Copyright © 2006 by Christophe Dumez&lt;br> @@ -425,7 +479,6 @@ Copyright © 2006 by Christophe Dumez&lt;br>
</layout>
</widget>
<layoutdefault spacing="6" margin="11" />
<pixmapfunction></pixmapfunction>
<resources/>
<connections/>
</ui>

1
src/about_imp.h

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

2
src/icons.qrc

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

1
src/lang.qrc

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

BIN
src/lang/qbittorrent_pt_BR.qm

Binary file not shown.
Loading…
Cancel
Save