Mercurial > hg > svgui
comparison widgets/LEDButton.cpp @ 1174:3f5c82034f9b more-hidpi
Scale the sizes of a few more UI elements
author | Chris Cannam |
---|---|
date | Mon, 05 Dec 2016 12:04:23 +0000 |
parents | e8949ccb4f4e |
children | a34a2a25907c |
comparison
equal
deleted
inserted
replaced
1173:db90fee630bc | 1174:3f5c82034f9b |
---|---|
21 Ported to Qt4 by Chris Cannam. | 21 Ported to Qt4 by Chris Cannam. |
22 */ | 22 */ |
23 | 23 |
24 | 24 |
25 #include "LEDButton.h" | 25 #include "LEDButton.h" |
26 #include "WidgetScale.h" | |
26 | 27 |
27 #include <QPainter> | 28 #include <QPainter> |
28 #include <QImage> | 29 #include <QImage> |
29 #include <QColor> | 30 #include <QColor> |
30 #include <QMouseEvent> | 31 #include <QMouseEvent> |
277 } | 278 } |
278 | 279 |
279 QSize | 280 QSize |
280 LEDButton::sizeHint() const | 281 LEDButton::sizeHint() const |
281 { | 282 { |
282 return QSize(17, 17); | 283 return WidgetScale::scaleQSize(QSize(17, 17)); |
283 } | 284 } |
284 | 285 |
285 QSize | 286 QSize |
286 LEDButton::minimumSizeHint() const | 287 LEDButton::minimumSizeHint() const |
287 { | 288 { |
288 return QSize(17, 17); | 289 return WidgetScale::scaleQSize(QSize(17, 17)); |
289 } | 290 } |
290 | 291 |