-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQPushButtonLoop.h
More file actions
50 lines (39 loc) · 1.03 KB
/
Copy pathQPushButtonLoop.h
File metadata and controls
50 lines (39 loc) · 1.03 KB
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
44
45
46
47
48
49
50
#ifndef QPUSHBUTTONLOOP_H
#define QPUSHBUTTONLOOP_H
#include <QObject>
#include <QWidget>
#include<QTreeWidget>
#include <QPushButton>
#include <QVBoxLayout>
enum class loopContextMenu{
ajouter,
inserer,
supprimer
};
class QPushButtonLoop : public QPushButton
{
Q_OBJECT
public:
QPushButtonLoop(QWidget *parent = 0);
int myId;
private:
QLineEdit *qle;
QVBoxLayout *hbl;
protected:
void dragEnterEvent(QDragEnterEvent *event);
void dropEvent(QDropEvent *event);
void dragMoveEvent(QDragMoveEvent *event) override;
void mousePressEvent(QMouseEvent *event);
void mouseDoubleClickEvent(QMouseEvent* event);
signals:
void changePosButtonLoop(int origMyId, int destMyId ) ;
void editedNameLoop(int,QString);
void contextMenuAction(loopContextMenu val, int myId);
private slots:
void ShowContextMenu(const QPoint &pos);
void addShowContextMenu();
void insertShowContextMenu();
void deleteShowContextMenu();
void editedNameLoop( );
};
#endif // QPUSHBUTTONLOOP_H