Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F623244
MaximizeButton.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
450 B
Referenced Files
None
Subscribers
None
MaximizeButton.cpp
View Options
#include
"MaximizeButton.h"
#include
<QPainter>
#include
"Theme.h"
#include
"ApplicationGlobal.h"
MaximizeButton
::
MaximizeButton
(
QWidget
*
parent
)
:
QToolButton
(
parent
)
{
pixmap
=
global
->
theme
->
resource_maximize_png
();
}
void
MaximizeButton
::
paintEvent
(
QPaintEvent
*
/*event*/
)
{
QPainter
pr
(
this
);
int
w
=
pixmap
.
width
();
int
h
=
pixmap
.
height
();
int
x
=
(
width
()
-
w
)
/
2
;
int
y
=
(
height
()
-
h
)
/
2
;
pr
.
drawPixmap
(
x
,
y
,
w
,
h
,
pixmap
);
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sat, Nov 14, 9:02 PM (1 d, 3 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
128815
Default Alt Text
MaximizeButton.cpp (450 B)
Attached To
Mode
R77 Guitar
Attached
Detach File
Event Timeline