added basic tabs

This commit is contained in:
fourtf
2016-12-30 12:20:26 +01:00
parent cfda4798d4
commit 2ce96a05bc
11 changed files with 240 additions and 27 deletions
+21 -3
View File
@@ -1,11 +1,29 @@
#ifndef NOTEBOOKBUTTON_H
#define NOTEBOOKBUTTON_H
#include <QWidget>
class NotebookButton
class NotebookButton : public QWidget
{
Q_OBJECT
public:
NotebookButton();
static const int IconPlus = 0;
static const int IconUser = 0;
static const int IconSettings = 0;
int icon = 0;
NotebookButton(QWidget *parent);
void paintEvent(QPaintEvent *) Q_DECL_OVERRIDE;
void mousePressEvent(QMouseEvent *) Q_DECL_OVERRIDE;
void mouseReleaseEvent(QMouseEvent *) Q_DECL_OVERRIDE;
void enterEvent(QEvent *) Q_DECL_OVERRIDE;
void leaveEvent(QEvent *) Q_DECL_OVERRIDE;
private:
bool mouseOver = false;
bool mouseDown = false;
};
#endif // NOTEBOOKBUTTON_H
#endif // NOTEBOOKBUTTON_H