PeriDyno 1.0.0
Loading...
Searching...
No Matches
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
23class QAction;
24class QMenu;
25class QToolButton;
26
27namespace tt
28{
29
30class CompactToolButton: public QFrame
31{
32 Q_OBJECT
33public:
34 CompactToolButton(QAction* action, QMenu* menu, QWidget* parent = nullptr);
35 virtual ~CompactToolButton() = default;
36
37 void SetHover(bool hover);
38
39private:
40 QToolButton* upButton;
41 QToolButton* downButton;
42 QToolButton* overlay;
43};
44
45}
46
47#endif
virtual ~CompactToolButton()=default
CompactToolButton(QAction *action, QMenu *menu, QWidget *parent=nullptr)
Definition Builder.h:33