mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
Replace foreach function by for, please try and report problem
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4900 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -408,7 +408,7 @@ void QETPrintPreviewDialog::updateZoomList() {
|
||||
int current_zoom_index = -1;
|
||||
zoom_box_ -> blockSignals(true);
|
||||
zoom_box_ -> clear();
|
||||
foreach (qreal z, zooms_real) {
|
||||
for (qreal z: zooms_real) {
|
||||
zoom_box_ -> addItem(QString(tr("%1 %")).arg(z * 100.0, 0, 'f', 2), z);
|
||||
if (z == current_zoom) current_zoom_index = zoom_box_ -> count() - 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user