-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathqcocoabox.h
40 lines (27 loc) · 885 Bytes
/
qcocoabox.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
#ifndef qcocoabox_h__
#define qcocoabox_h__
#include <QPointer>
#include "qcocoawidget.h"
class QCocoaBoxPrivate;
class QCocoaBox : public QCocoaWidget
{
Q_OBJECT
public:
enum BoxType {
NSBoxPrimary = 0, // Specifies the primary box appearance. This is the default box type.
NSBoxSecondary = 1, // Specifies the secondary box appearance.
NSBoxSeparator = 2, // Specifies that the box is a separator.
NSBoxOldStyle = 3 // Specifies that the box is an OS X v10.2–style box.
};
explicit QCocoaBox(QWidget * parent = 0);
virtual QSize sizeHint() const override;
public:
void setTitle(const QString &title);
void setBoxType(BoxType type);
void setContentWidget(QWidget *widget);
private:
friend class QCocoaBoxPrivate;
QPointer<QCocoaBoxPrivate> pimpl;
QWidget *contents;
};
#endif // qcocoabox_h__