blob: 524bd00bceed4257a5cdd1213d3b282354765f64 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#ifndef FAVOURITEPOPUP_HPP
#define FAVOURITEPOPUP_HPP
#include <QMenu>
#include <QPushButton>
#include <QLineEdit>
#include <QComboBox>
class QToolButton;
class FavouritePopup : public QMenu
{
Q_OBJECT;
public:
explicit FavouritePopup(QToolButton * button, QWidget * parent);
void showEvent(QShowEvent *event) override;
void keyPressEvent(QKeyEvent *event) override;
void keyReleaseEvent(QKeyEvent *event) override;
signals:
void confirmed();
void unfavourited();
void newGroupClicked();
private:
void confirmPressed();
private:
QToolButton *b;
public:
QLineEdit *fav_title;
QComboBox *fav_group;
QPushButton *confirm_btn;
bool is_ready;
};
#endif
|