mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-24 14:20:44 -04:00
Optimized RsCollectionDialog (still without thread).
Enabled extended selection and mark with the key 'space'. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5173 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
5fbb6448d3
commit
e2746efb85
3 changed files with 126 additions and 93 deletions
|
@ -30,22 +30,24 @@ class RsCollectionDialog: public QDialog, public Ui::RsCollectionDialog
|
|||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
RsCollectionDialog(const QString& filename,const std::vector<RsCollectionFile::DLinfo>& dlinfos) ;
|
||||
public:
|
||||
RsCollectionDialog(const QString& filename,const std::vector<RsCollectionFile::DLinfo>& dlinfos) ;
|
||||
|
||||
public slots:
|
||||
void download() ;
|
||||
void selectAll() const ;
|
||||
void deselectAll() const ;
|
||||
void cancel() ;
|
||||
void updateSizes() ;
|
||||
private slots:
|
||||
void download() ;
|
||||
void selectAll() ;
|
||||
void deselectAll() ;
|
||||
void cancel() ;
|
||||
void updateSizes() ;
|
||||
void itemChanged(QTreeWidgetItem *item, int column);
|
||||
|
||||
protected:
|
||||
bool eventFilter(QObject *obj, QEvent *ev);
|
||||
protected:
|
||||
bool eventFilter(QObject *obj, QEvent *ev);
|
||||
|
||||
private:
|
||||
const std::vector<RsCollectionFile::DLinfo>& _dlinfos ;
|
||||
std::vector<QCheckBox*> _cboxes ;
|
||||
QString _filename ;
|
||||
private:
|
||||
void selectDeselectAll(bool select);
|
||||
void connectUpdate(bool doConnect);
|
||||
|
||||
const std::vector<RsCollectionFile::DLinfo>& _dlinfos ;
|
||||
QString _filename ;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue