Mercurial > hg > forks > UniversalIndentGUI
changeset 300:c72f32886d2b
Avoided double definition of an index variable.
git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@523 59b1889a-e5ac-428c-b0c7-476e01d41282
author | thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282> |
---|---|
date | Sun, 16 Dec 2007 15:51:09 +0000 |
parents | 0ef58a3ffd34 |
children | d5c2d35f42a3 |
files | src/mainwindow.cpp |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/mainwindow.cpp Sun Dec 16 15:50:35 2007 +0000 +++ b/src/mainwindow.cpp Sun Dec 16 15:51:09 2007 +0000 @@ -1216,6 +1216,8 @@ \brief Catches language change events and retranslates all needed widgets. */ void MainWindow::changeEvent(QEvent *event) { + int i = 0; + if (event->type() == QEvent::LanguageChange) { QString languageName; @@ -1228,13 +1230,13 @@ // Translate the encoding menu. QList<QAction *> encodingActionList = encodingActionGroup->actions(); - for ( int i = 0; i < encodingActionList.size(); i++ ) { + for ( i = 0; i < encodingActionList.size(); i++ ) { encodingActionList.at(i)->setStatusTip( tr("Reopen the currently opened source code file by using the text encoding scheme ") + encodingsList.at(i) ); } // Translate the highlighter menu. QList<QAction *> actionList = highlighterMenu->actions(); - int i = 0; + i = 0; foreach ( QString highlighterName, highlighter->getAvailableHighlighters() ) { QAction *highlighterAction = actionList.at(i); highlighterAction->setStatusTip( tr("Set the syntax highlightning to ") + highlighterName );