mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
32 lines
562 B
C
32 lines
562 B
C
|
#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
|