Changeset View
Changeset View
Standalone View
Standalone View
mainWindow/kpMainWindow_View_Zoom.cpp
Show First 20 Lines • Show All 197 Lines • ▼ Show 20 Line(s) | 197 | { | |||
---|---|---|---|---|---|
198 | zoomLevel = d->mainView->zoomLevelX (); | 198 | zoomLevel = d->mainView->zoomLevelX (); | ||
199 | } | 199 | } | ||
200 | } | 200 | } | ||
201 | #endif | 201 | #endif | ||
202 | 202 | | |||
203 | int index = 0; | 203 | int index = 0; | ||
204 | QList <int>::Iterator it = d->zoomList.begin (); | 204 | QList <int>::Iterator it = d->zoomList.begin (); | ||
205 | 205 | | |||
206 | while (index < (int) d->zoomList.count () && zoomLevel > *it) | 206 | while (index < d->zoomList.count () && zoomLevel > *it) | ||
207 | it++, index++; | 207 | { | ||
208 | it++; | ||||
209 | index++; | ||||
210 | } | ||||
208 | 211 | | |||
209 | if (zoomLevel != *it) | 212 | if (zoomLevel != *it) | ||
210 | d->zoomList.insert (it, zoomLevel); | 213 | d->zoomList.insert (it, zoomLevel); | ||
211 | 214 | | |||
212 | // OPT: We get called twice on startup. sendZoomListToActionZoom() is very slow. | 215 | // OPT: We get called twice on startup. sendZoomListToActionZoom() is very slow. | ||
213 | sendZoomListToActionZoom (); | 216 | sendZoomListToActionZoom (); | ||
214 | 217 | | |||
215 | #if DEBUG_KP_MAIN_WINDOW | 218 | #if DEBUG_KP_MAIN_WINDOW | ||
▲ Show 20 Lines • Show All 489 Lines • Show Last 20 Lines |