Falkon
Develop
Cross-platform Qt-based web browser
mactoolbutton.h
Go to the documentation of this file.
1
/* ============================================================
2
* Falkon - Qt web browser
3
* Copyright (C) 2013-2017 David Rosca <nowrep@gmail.com>
4
* Copyright (C) 2013-2014 S. Razi Alavizadeh <s.r.alavizadeh@gmail.com>
5
*
6
* This program is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18
* ============================================================ */
19
#ifndef MACTOOLBUTTON_H
20
#define MACTOOLBUTTON_H
21
22
#include "
qzcommon.h
"
23
24
#ifdef Q_OS_MACOS
25
#include <QPushButton>
26
27
class
FALKON_EXPORT
MacToolButton
:
public
QPushButton
28
{
29
Q_OBJECT
30
Q_PROPERTY(
bool
autoRaise READ autoRaise WRITE setAutoRaise)
31
32
public
:
33
explicit
MacToolButton
(QWidget* parent =
nullptr
);
34
35
void
setIconSize(
const
QSize &size);
36
37
void
setAutoRaise(
bool
enable);
38
bool
autoRaise()
const
;
39
40
private
:
41
bool
m_autoRise;
42
QSize m_buttonFixedSize;
43
};
44
#else
45
#include <QToolButton>
46
47
class
FALKON_EXPORT
MacToolButton
:
public
QToolButton
48
{
49
Q_OBJECT
50
51
public
:
52
explicit
MacToolButton
(QWidget* parent =
nullptr
);
53
};
54
#endif
55
#endif
// MACTOOLBUTTON_H
MacToolButton
Definition:
mactoolbutton.h:48
qzcommon.h
FALKON_EXPORT
#define FALKON_EXPORT
Definition:
qzcommon.h:28
src
lib
tools
mactoolbutton.h
Generated by
1.9.3