qt-material-widgets/components/qtmaterialdrawer_p.h

36 lines
733 B
C
Raw Normal View History

2017-09-30 00:20:12 +00:00
#ifndef DRAWER_P_H
#define DRAWER_P_H
#include <QObject>
2022-02-17 02:22:22 +00:00
namespace md
{
2017-09-30 00:20:12 +00:00
2022-02-17 02:22:22 +00:00
class Drawer;
class DrawerWidget;
class DrawerStateMachine;
2017-09-30 00:20:12 +00:00
2022-02-17 02:22:22 +00:00
class DrawerPrivate
2017-09-30 00:20:12 +00:00
{
2022-02-17 02:22:22 +00:00
Q_DISABLE_COPY(DrawerPrivate)
Q_DECLARE_PUBLIC(Drawer)
2017-09-30 00:20:12 +00:00
public:
2022-02-17 02:22:22 +00:00
DrawerPrivate(Drawer *q);
~DrawerPrivate();
2017-10-05 08:13:21 +00:00
void init();
void setClosed(bool value = true);
2017-09-30 00:20:12 +00:00
2022-02-17 02:22:22 +00:00
Drawer *const q_ptr;
DrawerWidget *widget;
DrawerStateMachine *stateMachine;
2017-10-05 08:13:21 +00:00
QWidget *window;
int width;
bool clickToClose;
bool autoRaise;
bool closed;
bool overlay;
2017-09-30 00:20:12 +00:00
};
2022-02-17 02:22:22 +00:00
}
2017-09-30 00:20:12 +00:00
#endif // DRAWER_P_H