PeriDyno
1.0.0
Loading...
Searching...
No Matches
D:
Peridyno
peridyno
src
Rendering
GUI
QtGUI
ToolBar
CompactToolButton.h
Go to the documentation of this file.
1
/*
2
TabToolbar - a small utility library for Qt, providing tabbed toolbars
3
Copyright (C) 2018 Oleksii Sierov
4
5
TabToolbar is free software: you can redistribute it and/or modify
6
it under the terms of the GNU Lesser General Public License as published by
7
the Free Software Foundation, either version 3 of the License, or
8
(at your option) any later version.
9
10
TabToolbar is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU Lesser General Public License for more details.
14
15
You should have received a copy of the GNU Lesser General Public License
16
along with TabToolbar. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
#ifndef TT_COMPACT_TOOL_BUTTON_H
19
#define TT_COMPACT_TOOL_BUTTON_H
20
#include <QFrame>
21
#include <QColor>
22
23
class
QAction;
24
class
QMenu;
25
class
QToolButton;
26
27
namespace
tt
28
{
29
30
class
CompactToolButton
:
public
QFrame
31
{
32
Q_OBJECT
33
public
:
34
CompactToolButton
(QAction* action, QMenu* menu, QWidget* parent =
nullptr
);
35
virtual
~CompactToolButton
() =
default
;
36
37
void
SetHover
(
bool
hover);
38
39
private
:
40
QToolButton*
upButton
;
41
QToolButton*
downButton
;
42
QToolButton*
overlay
;
43
};
44
45
}
46
47
#endif
tt::CompactToolButton::SetHover
void SetHover(bool hover)
Definition
CompactToolButton.cpp:175
tt::CompactToolButton::overlay
QToolButton * overlay
Definition
CompactToolButton.h:42
tt::CompactToolButton::~CompactToolButton
virtual ~CompactToolButton()=default
tt::CompactToolButton::CompactToolButton
CompactToolButton(QAction *action, QMenu *menu, QWidget *parent=nullptr)
Definition
CompactToolButton.cpp:127
tt::CompactToolButton::downButton
QToolButton * downButton
Definition
CompactToolButton.h:41
tt::CompactToolButton::upButton
QToolButton * upButton
Definition
CompactToolButton.h:40
tt
Definition
Builder.h:33
Generated by
1.13.2