QmlProfiler: Move zoom calculations into QML and simplify them.

The zoom level calculations were much too complex and introduced
rounding errors in various places. By moving them all into one
place and avoiding circular recalculations of the same thing those
problems are mitigated.

Task-number: QTCREATORBUG-10635

Change-Id: I7316caad1a590964402056a2e6430c8d059ae097
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
Ulf Hermann
2013-11-12 16:12:43 +01:00
parent 9e0175d8bb
commit 761fd1198d
3 changed files with 34 additions and 68 deletions

View File

@@ -112,7 +112,6 @@ private slots:
void toggleLockMode(bool);
void updateLockButton();
void setZoomLevel(int zoomLevel);
void updateRange();
void mouseWheelMoved(int mouseX, int mouseY, int wheelDelta);
@@ -136,7 +135,6 @@ signals:
void rangeModeChanged(bool);
void lockModeChanged(bool);
void enableToolbar(bool);
void zoomLevelChanged(int);
void showZoomSlider(bool);
void resized();