-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGuiTabBar.h
45 lines (35 loc) · 891 Bytes
/
GuiTabBar.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
/*
* Copyright (C) 2013 Rajendran Thirupugalsamy
* See LICENSE for full copyright and license information.
* See COPYING for distribution information.
*/
#ifndef GUITABBAR_H
#define GUITABBAR_H
#include <QTabBar>
class GuiTabWidget;
class GuiMainWindow;
class GuiTabBar : public QTabBar {
Q_OBJECT
GuiMainWindow *mainWindow;
public:
GuiTabBar(GuiTabWidget *t, GuiMainWindow *main);
virtual ~GuiTabBar() {}
// Needed functions for drag-drop support
void dragEnterEvent(QDragEnterEvent *e);
void dragLeaveEvent(QDragLeaveEvent *e);
void dragMoveEvent(QDragMoveEvent *e);
void dropEvent(QDropEvent *e);
protected:
void tabInserted(int index) {
(void)index;
emit sig_tabInserted();
}
void tabRemoved(int index) {
(void)index;
emit sig_tabRemoved();
}
signals:
void sig_tabInserted();
void sig_tabRemoved();
};
#endif // GUITABBAR_H