[qet] [3289] Refrefresh diagramview |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/qet Archives
]
Revision: 3289
Author: scorpio810
Date: 2014-08-24 05:36:38 +0200 (Sun, 24 Aug 2014)
Log Message:
-----------
Refrefresh diagramview
Modified Paths:
--------------
trunk/sources/diagramview.cpp
Modified: trunk/sources/diagramview.cpp
===================================================================
--- trunk/sources/diagramview.cpp 2014-08-19 16:06:28 UTC (rev 3288)
+++ trunk/sources/diagramview.cpp 2014-08-24 03:36:38 UTC (rev 3289)
@@ -352,6 +352,9 @@
*/
void DiagramView::zoomOut() {
scale(0.75, 0.75);
+ if ((mapFromScene(0,0).rx() == 0) && (mapFromScene(0,0).ry() == 0)){
+ fitInView(sceneRect(), Qt::KeepAspectRatio);
+ }
adjustGridToZoom();
}
@@ -590,10 +593,10 @@
#else
if (!(e -> modifiers() & Qt::ControlModifier)) {
if (e -> delta() > 0){
- zoomInSlowly();
+ zoomIn();
}
else{
- zoomOutSlowly();
+ zoomOut();
}
}
else {