QtCanpool
3.3.0
载入中...
搜索中...
未找到
qxtabbar_p.h
浏览该文件的文档.
1
5
#pragma once
6
7
#include "
qxapp_global.h
"
8
#include <QObject>
9
#include <QMap>
10
11
class
QAction;
12
class
QActionGroup;
13
class
QToolButton;
14
15
QX_APP_BEGIN_NAMESPACE
16
17
class
QxTabBar;
18
19
class
QxTabBarPrivate
:
public
QObject
20
{
21
Q_OBJECT
22
public
:
23
QX_DECLARE_PUBLIC
(
QxTabBar
)
24
public
:
25
QxTabBarPrivate
();
26
virtual
~QxTabBarPrivate
();
27
28
void
init();
29
bool
validIndex
(
int
index)
const
30
{
31
return
index >= 0 && index < m_tabs.count();
32
}
33
34
int
indexOf(QAction *action);
35
36
void
layoutActions();
37
38
private
Q_SLOTS:
39
void
onTriggered(QAction *action);
40
void
onOrientationChanged(Qt::Orientation orientation);
41
public
:
42
QList<QAction *>
m_tabs
;
43
QActionGroup *
m_group
;
44
int
m_currentIndex
;
45
bool
m_togglable
;
46
};
47
48
QX_APP_END_NAMESPACE
QxApp::QxTabBarPrivate
Definition
qxtabbar_p.h:20
QxApp::QxTabBarPrivate::m_tabs
QList< QAction * > m_tabs
Definition
qxtabbar_p.h:42
QxApp::QxTabBarPrivate::m_group
QActionGroup * m_group
Definition
qxtabbar_p.h:43
QxApp::QxTabBarPrivate::m_togglable
bool m_togglable
Definition
qxtabbar_p.h:45
QxApp::QxTabBarPrivate::validIndex
bool validIndex(int index) const
Definition
qxtabbar_p.h:29
QxApp::QxTabBarPrivate::m_currentIndex
int m_currentIndex
Definition
qxtabbar_p.h:44
QxApp::QxTabBar
Definition
qxtabbar.h:16
qxapp_global.h
QX_APP_END_NAMESPACE
#define QX_APP_END_NAMESPACE
Definition
qxapp_global.h:63
QX_DECLARE_PUBLIC
#define QX_DECLARE_PUBLIC(Class)
Definition
qxapp_global.h:28
QX_APP_BEGIN_NAMESPACE
#define QX_APP_BEGIN_NAMESPACE
Definition
qxapp_global.h:60
src
libs
qxapp
qxtabbar_p.h
制作者
1.9.8