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

20
src/ui/propertieswidget.ui

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

Loading…
Cancel
Save