mirror of
https://github.com/fralx/LimeReport.git
synced 2025-11-25 00:18:06 +03:00
WIP
This commit is contained in:
@@ -1058,8 +1058,13 @@ bool ReportDesignWidget::eventFilter(QObject *target, QEvent *event)
|
||||
if (event->type() == QEvent::Wheel){
|
||||
QWheelEvent* we = dynamic_cast<QWheelEvent*>(event);
|
||||
if (QApplication::keyboardModifiers()==Qt::ControlModifier){
|
||||
#if QT_VERSION < 0x060000
|
||||
if(we->delta()<0) scale(1.2,1.2);
|
||||
else scale(1/1.2,1/1.2);
|
||||
#else
|
||||
if(we->pixelDelta().x()<0) scale(1.2,1.2);
|
||||
else scale(1/1.2,1/1.2);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
return QWidget::eventFilter(target,event);
|
||||
|
||||
Reference in New Issue
Block a user