Browse Source

Removed force_reannounce button from the main properties tab since the action is available from the trackers list now

adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
c0520146e9
  1. 6
      src/propertieswidget.cpp
  2. 1
      src/propertieswidget.h
  3. 56
      src/ui/propertieswidget.ui

6
src/propertieswidget.cpp

@ -233,12 +233,6 @@ void PropertiesWidget::updateTorrentInfos(QTorrentHandle& _h) {
} }
} }
void PropertiesWidget::on_reannounce_btn_clicked() {
if(h.is_valid()) {
h.force_reannounce();
}
}
void PropertiesWidget::loadTorrentInfos(QTorrentHandle &_h) { void PropertiesWidget::loadTorrentInfos(QTorrentHandle &_h) {
clear(); clear();
h = _h; h = _h;

1
src/propertieswidget.h

@ -101,7 +101,6 @@ protected slots:
void showPiecesAvailability(bool show); void showPiecesAvailability(bool show);
void updateSavePath(QTorrentHandle& h); void updateSavePath(QTorrentHandle& h);
void renameSelectedFile(); void renameSelectedFile();
void on_reannounce_btn_clicked();
public slots: public slots:
void loadDynamicData(); void loadDynamicData();

56
src/ui/propertieswidget.ui

@ -54,8 +54,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>520</width> <width>522</width>
<height>360</height> <height>351</height>
</rect> </rect>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_2"> <layout class="QVBoxLayout" name="verticalLayout_2">
@ -215,7 +215,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="5"> <item row="0" column="6">
<widget class="QLabel" name="shareRatio"> <widget class="QLabel" name="shareRatio">
<property name="text"> <property name="text">
<string notr="true">1.0</string> <string notr="true">1.0</string>
@ -266,7 +266,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="5"> <item row="1" column="6">
<widget class="QLabel" name="lbl_connections"> <widget class="QLabel" name="lbl_connections">
<property name="text"> <property name="text">
<string notr="true">0</string> <string notr="true">0</string>
@ -317,42 +317,18 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="5"> <item row="2" column="6">
<layout class="QHBoxLayout" name="horizontalLayout_3"> <widget class="QLabel" name="reannounce_lbl">
<item> <property name="sizePolicy">
<widget class="QLabel" name="reannounce_lbl"> <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<property name="sizePolicy"> <horstretch>0</horstretch>
<sizepolicy hsizetype="Minimum" vsizetype="Preferred"> <verstretch>0</verstretch>
<horstretch>0</horstretch> </sizepolicy>
<verstretch>0</verstretch> </property>
</sizepolicy> <property name="text">
</property> <string notr="true"/>
<property name="text"> </property>
<string notr="true"/> </widget>
</property>
</widget>
</item>
<item>
<widget class="QToolButton" name="reannounce_btn">
<property name="toolTip">
<string>Force reannounce</string>
</property>
<property name="text">
<string notr="true"/>
</property>
<property name="icon">
<iconset resource="../icons.qrc">
<normaloff>:/Icons/oxygen/run-build.png</normaloff>:/Icons/oxygen/run-build.png</iconset>
</property>
<property name="iconSize">
<size>
<width>12</width>
<height>12</height>
</size>
</property>
</widget>
</item>
</layout>
</item> </item>
</layout> </layout>
</widget> </widget>

Loading…
Cancel
Save