- Usability improvement in torrent properties

This commit is contained in:
Christophe Dumez 2009-11-08 19:09:10 +00:00
parent 4a33917e89
commit a7da280f57
5 changed files with 91 additions and 37 deletions

View file

@ -43,6 +43,7 @@ class RealProgressBarThread;
class bittorrent;
enum Tab {MAIN_TAB, TRACKERS_TAB, URLSEEDS_TAB, FILES_TAB};
enum SlideState {REDUCED, VISIBLE};
class PropertiesWidget : public QWidget, private Ui::PropertiesWidget {
Q_OBJECT
@ -55,6 +56,7 @@ private:
RealProgressBarThread *progressBarUpdater;
QVBoxLayout *progressBarVbox;
bittorrent* BTSession;
SlideState state;
protected:
QPushButton* getButtonFromIndex(int index);
@ -69,6 +71,10 @@ protected slots:
void on_url_seeds_button_clicked();
void on_files_button_clicked();
public slots:
void reduce();
void slide();
public:
PropertiesWidget(QWidget *parent, TransferListWidget *transferList, bittorrent* BTSession);
~PropertiesWidget();