[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdegraphics/kolourpaint (silent)
From: Clarence Dang <dang () kde ! org>
Date: 2006-07-23 5:48:55
Message-ID: 1153633735.482199.14805.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 565339 by dang:
SVN_SILENT style: move constants out of loop, captialise, +const
M +14 -14 kpmainwindow_image.cpp
--- trunk/KDE/kdegraphics/kolourpaint/kpmainwindow_image.cpp #565338:565339
@@ -157,26 +157,26 @@
// private slot
void kpMainWindow::slotImageMenuUpdateDueToSelection ()
{
+ // SYNC: kolourpaintui.rc
+ const QString MenuBarItemTextImage = i18nc (
+ "Image/Selection Menu caption - make sure the translation has"
+ " the same accel as the Select&ion translation",
+ "&Image");
+ const QString MenuBarItemTextSelection = i18nc (
+ "Image/Selection Menu caption - make sure that translation has"
+ " the same accel as the &Image translation",
+ "Select&ion");
+
Q_ASSERT (menuBar ());
foreach (QAction *action, menuBar ()->actions ())
{
- // SYNC: kolourpaintui.rc
- QString menuBarItemTextImage = i18nc (
- "Image/Selection Menu caption - make sure the translation has"
- " the same accel as the Select&ion translation",
- "&Image");
- QString menuBarItemTextSelection = i18nc (
- "Image/Selection Menu caption - make sure that translation has"
- " the same accel as the &Image translation",
- "Select&ion");
-
- if (action->text () == menuBarItemTextImage ||
- action->text () == menuBarItemTextSelection)
+ if (action->text () == MenuBarItemTextImage ||
+ action->text () == MenuBarItemTextSelection)
{
if (isSelectionActive ())
- action->setText (menuBarItemTextSelection);
+ action->setText (MenuBarItemTextSelection);
else
- action->setText (menuBarItemTextImage);
+ action->setText (MenuBarItemTextImage);
break;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic