Browse Source

- Fix compilation warning in release mode

- Fix vertical alignment in torrent properties panel
adaptive-webui-19844
Christophe Dumez 15 years ago
parent
commit
fa2891c225
  1. 2
      src/propertieswidget.cpp
  2. 20
      src/ui/propertieswidget.ui

2
src/propertieswidget.cpp

@ -284,8 +284,6 @@ void PropertiesWidget::saveSettings() {
sizes = hSplitter->sizes(); sizes = hSplitter->sizes();
else else
sizes = slideSizes; sizes = slideSizes;
if(state == VISIBLE)
qDebug("Visible");
qDebug("Sizes: %d", sizes.size()); qDebug("Sizes: %d", sizes.size());
if(sizes.size() == 2) { if(sizes.size() == 2) {
settings.setValue(QString::fromUtf8("TorrentProperties/SplitterSizes"), QString::number(sizes.first())+','+QString::number(sizes.last())); settings.setValue(QString::fromUtf8("TorrentProperties/SplitterSizes"), QString::number(sizes.first())+','+QString::number(sizes.last()));

20
src/ui/propertieswidget.ui

@ -53,7 +53,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>-81</y>
<width>518</width> <width>518</width>
<height>371</height> <height>371</height>
</rect> </rect>
@ -414,6 +414,9 @@
<layout class="QHBoxLayout" name="horizontalLayout_7"> <layout class="QHBoxLayout" name="horizontalLayout_7">
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout_2"> <layout class="QVBoxLayout" name="verticalLayout_2">
<property name="spacing">
<number>8</number>
</property>
<item> <item>
<widget class="QLabel" name="savePath_lbl"> <widget class="QLabel" name="savePath_lbl">
<property name="sizePolicy"> <property name="sizePolicy">
@ -462,26 +465,13 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QLabel" name="label_3">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string notr="true"/>
</property>
</widget>
</item>
<item> <item>
<widget class="QLabel" name="comment_lbl2"> <widget class="QLabel" name="comment_lbl2">
<property name="text"> <property name="text">
<string>Comment:</string> <string>Comment:</string>
</property> </property>
<property name="alignment"> <property name="alignment">
<set>Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing</set> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property> </property>
</widget> </widget>
</item> </item>

Loading…
Cancel
Save