Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F628494
MyToolButton.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
463 B
Referenced Files
None
Subscribers
None
MyToolButton.h
View Options
#ifndef MYTOOLBUTTON_H
#define MYTOOLBUTTON_H
#include
<QToolButton>
class
MyToolButton
:
public
QToolButton
{
Q_OBJECT
public
:
enum
Indicator
{
None
,
Dot
,
Number
,
};
private
:
Indicator
indicator
=
None
;
int
number
=
-1
;
void
setIndicatorMode
(
Indicator
i
);
public
:
explicit
MyToolButton
(
QWidget
*
parent
=
nullptr
);
void
setNumber
(
int
n
);
void
setDot
(
bool
f
);
protected
:
void
paintEvent
(
QPaintEvent
*
event
)
override
;
};
#endif
// MYTOOLBUTTON_H
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Nov 15, 4:17 AM (4 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
129695
Default Alt Text
MyToolButton.h (463 B)
Attached To
Mode
R77 Guitar
Attached
Detach File
Event Timeline