Qt 5.10 Book Examples
chapter43
MacButton
MacButton.h
Go to the documentation of this file.
1
// ======================================================================
2
// MacButton.h
3
// ======================================================================
4
// This file is a part of the book
5
// "Qt 5.10 Professional programming with C++"
6
// http://qt-book.com
7
// ======================================================================
8
// Copyright (c) 2017 by Max Schlee
9
// ======================================================================
10
11
#pragma once
12
13
#include <QtWidgets>
14
15
#import <qmaccocoaviewcontainer_mac.h>
16
17
// ======================================================================
18
class
ButtonContainer
:
public
QMacCocoaViewContainer {
19
Q_OBJECT
20
public
:
21
ButtonContainer
(QWidget* pwgt = 0);
22
23
QSize
sizeHint
()
const
;
24
};
25
26
// ======================================================================
27
class
MacButton
:
public
QWidget {
28
Q_OBJECT
29
public
:
30
MacButton
(QWidget* pwgt = 0);
31
};
32
33
ButtonContainer::sizeHint
QSize sizeHint() const
Definition:
MacButton.mm:34
MacButton::MacButton
MacButton(QWidget *pwgt=0)
Definition:
MacButton.mm:40
ButtonContainer::ButtonContainer
ButtonContainer(QWidget *pwgt=0)
Definition:
MacButton.mm:16
MacButton
Definition:
MacButton.h:27
ButtonContainer
Definition:
MacButton.h:18
Generated by
1.8.14