Fixed most depratated warnings.
This commit is contained in:
@@ -58,7 +58,7 @@ int PinWidget::margin() const {
|
||||
}
|
||||
|
||||
void PinWidget::wheelEvent(QWheelEvent *e) {
|
||||
int val = e->delta() > 0 ? 15 : -15;
|
||||
int val = e->angleDelta().y() > 0 ? 15 : -15;
|
||||
int newWidth = qBound(50, m_label->width() + val, maximumWidth());
|
||||
int newHeight = qBound(50, m_label->height() + val, maximumHeight());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user