mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-19 11:54:22 -04:00
Added new base class for a subscribe button - SubscribeToolButton.
Added subscribe and auto-download button to channel dialog. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7431 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
30681ed205
commit
48e5a49cd5
10 changed files with 260 additions and 42 deletions
31
retroshare-gui/src/gui/common/SubscribeToolButton.h
Normal file
31
retroshare-gui/src/gui/common/SubscribeToolButton.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
#ifndef SUBSCRIBETOOLBUTTON_H
|
||||
#define SUBSCRIBETOOLBUTTON_H
|
||||
|
||||
#include <QToolButton>
|
||||
|
||||
class SubscribeToolButton : public QToolButton
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit SubscribeToolButton(QWidget *parent = 0);
|
||||
|
||||
void setSubscribed(bool subscribed);
|
||||
void addSubscribedAction(QAction *action);
|
||||
|
||||
signals:
|
||||
void subscribe(bool subscribe);
|
||||
|
||||
private slots:
|
||||
void subscribePrivate();
|
||||
void unsubscribePrivate();
|
||||
|
||||
private:
|
||||
void updateUi();
|
||||
|
||||
private:
|
||||
bool mSubscribed;
|
||||
QList<QAction*> mSubscribedActions;
|
||||
};
|
||||
|
||||
#endif // SUBSCRIBETOOLBUTTON_H
|
Loading…
Add table
Add a link
Reference in a new issue