Browse Source

- Fixed layout again for about

adaptive-webui-19844
Christophe Dumez 18 years ago
parent
commit
2589d4e682
  1. 66
      src/about.ui
  2. 2
      src/about_imp.h

66
src/about.ui

@ -26,22 +26,22 @@ @@ -26,22 +26,22 @@
<string>About qBittorrent</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="logo" >
<property name="minimumSize" >
<size>
<width>22</width>
<height>22</height>
</size>
</property>
<property name="maximumSize" >
<size>
<width>22</width>
<height>22</height>
</size>
</property>
<property name="text" >
<string/>
</property>
@ -50,9 +50,7 @@ @@ -50,9 +50,7 @@
<item>
<widget class="QLabel" name="lb_name" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
@ -65,6 +63,19 @@ @@ -65,6 +63,19 @@
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
@ -99,9 +110,7 @@ @@ -99,9 +110,7 @@
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
@ -125,18 +134,12 @@ Copyright © 2006 by Christophe Dumez&lt;br> @@ -125,18 +134,12 @@ Copyright © 2006 by Christophe Dumez&lt;br>
<string>Author</string>
</attribute>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QFrame" name="te_authors" >
<layout class="QHBoxLayout" >
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
@ -158,9 +161,6 @@ Copyright © 2006 by Christophe Dumez&lt;br> @@ -158,9 +161,6 @@ Copyright © 2006 by Christophe Dumez&lt;br>
</item>
<item>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
@ -292,9 +292,6 @@ Copyright © 2006 by Christophe Dumez&lt;br> @@ -292,9 +292,6 @@ Copyright © 2006 by Christophe Dumez&lt;br>
</item>
<item>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
@ -365,9 +362,6 @@ Copyright © 2006 by Christophe Dumez&lt;br> @@ -365,9 +362,6 @@ Copyright © 2006 by Christophe Dumez&lt;br>
<string>Thanks To</string>
</attribute>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
@ -381,9 +375,6 @@ Copyright © 2006 by Christophe Dumez&lt;br> @@ -381,9 +375,6 @@ Copyright © 2006 by Christophe Dumez&lt;br>
<string>Translation</string>
</attribute>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
@ -401,9 +392,6 @@ Copyright © 2006 by Christophe Dumez&lt;br> @@ -401,9 +392,6 @@ Copyright © 2006 by Christophe Dumez&lt;br>
<string>License</string>
</attribute>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>11</number>
</property>
<property name="spacing" >
<number>6</number>
</property>

2
src/about_imp.h

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

Loading…
Cancel
Save