-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpostit.h
61 lines (54 loc) · 1.33 KB
/
postit.h
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
51
52
53
54
55
56
57
58
59
60
61
#ifndef POSTIT_H
#define POSTIT_H
#include <QWidget>
#include <QObject>
#include <QDockWidget>
#include <string.h>
#include <QLabel>
#include <QString>
#include <QStyleOption>
#include <QWindow>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QPainter>
#include <QMouseEvent>
#include <QMoveEvent>
#include <QPoint>
#include <QApplication>
#include <QDrag>
#include <QMimeData>
#include <QDebug>
#include <QTextEdit>
#include <QCheckBox>
#include <QGroupBox>
#include <QPushButton>
#include <QProgressBar>
#include <QSlider>
#include <QSpinBox>
#include <QDateTime>
#include <QColorDialog>
#include <QDateEdit>
#include "database.h"
class postit: public QWidget
{
Q_OBJECT
public:
postit(QWidget *parent, database *db, QPoint p = {0, 0}, QString text = "Note", int id = 0);
~postit();
public slots:
void dl();
private:
database *db;
QLabel *labelTest = new QLabel;
QVBoxLayout *layTest = new QVBoxLayout;
QHBoxLayout *layTest1 = new QHBoxLayout;
QPushButton *quit = new QPushButton;
QPoint ref;
int id = 0;
void mousePressEvent(QMouseEvent *event) override;
void mouseReleaseEvent(QMouseEvent *event) override;
void mouseMoveEvent(QMouseEvent *event) override;
void mouseDoubleClickEvent(QMouseEvent *event) override;
void paintEvent(QPaintEvent *pe) override;
};
#endif // POSTIT_H