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 15 years ago
parent
commit
c0520146e9
  1. 6
      src/propertieswidget.cpp
  2. 1
      src/propertieswidget.h
  3. 34
      src/ui/propertieswidget.ui

6
src/propertieswidget.cpp

@ -233,12 +233,6 @@ void PropertiesWidget::updateTorrentInfos(QTorrentHandle& _h) { @@ -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) {
clear();
h = _h;

1
src/propertieswidget.h

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

34
src/ui/propertieswidget.ui

@ -54,8 +54,8 @@ @@ -54,8 +54,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>520</width>
<height>360</height>
<width>522</width>
<height>351</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
@ -215,7 +215,7 @@ @@ -215,7 +215,7 @@
</property>
</widget>
</item>
<item row="0" column="5">
<item row="0" column="6">
<widget class="QLabel" name="shareRatio">
<property name="text">
<string notr="true">1.0</string>
@ -266,7 +266,7 @@ @@ -266,7 +266,7 @@
</property>
</widget>
</item>
<item row="1" column="5">
<item row="1" column="6">
<widget class="QLabel" name="lbl_connections">
<property name="text">
<string notr="true">0</string>
@ -317,9 +317,7 @@ @@ -317,9 +317,7 @@
</property>
</widget>
</item>
<item row="2" column="5">
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<item row="2" column="6">
<widget class="QLabel" name="reannounce_lbl">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
@ -332,28 +330,6 @@ @@ -332,28 +330,6 @@
</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>
</layout>
</widget>
</item>

Loading…
Cancel
Save