[Kst] kdeextragear-2/kst/kst
Barth Netterfield
netterfield at astro.utoronto.ca
Wed Jul 16 15:17:09 CEST 2003
CVS commit by netterfield:
Pause updates while mouse zooming
deleted obsolete static
Should be ready for 0.90 'release'.
M +9 -7 kst.cpp 1.45
--- kdeextragear-2/kst/kst/kst.cpp #1.44:1.45
@@ -97,5 +97,5 @@ KstApp::KstApp(QWidget *parent, const ch
connect(timer, SIGNAL(timeout()),
this, SLOT(slotTimer()));
- timer->start(200,FALSE);
+ timer->start(50,FALSE);
connect(doc, SIGNAL(newFrameMsg(int)),
@@ -690,6 +690,4 @@ void KstApp::slotUpdateDataMsg(const QSt
/** Update everything */
void KstApp::slotTimer() {
- // Why is this static? FIXME
- static bool need_view_update = false;
KstObject::UpdateType U;
@@ -705,11 +703,15 @@ void KstApp::slotTimer() {
}
- // Update document. If something has changed, update the view
+ // pause during mouse zooming
+ KstMouseModeType M = view->MouseInfo->getMode();
+ if ((M==XY_ZOOMBOX) || (M == Y_ZOOMBOX) || (M==X_ZOOMBOX)) {
+ timer->start(200);
+ return;
+ }
+ // Update document. If something has changed, update the view
U = doc->update();
-
- if (need_view_update || (U == KstObject::UPDATE)) {
+ if (U == KstObject::UPDATE) {
view->update();
- need_view_update = false;
}
More information about the Kst
mailing list