[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdecore/kconfig_compiler
From: Allen Winter <winter () kde ! org>
Date: 2008-04-21 13:04:20
Message-ID: 1208783060.992413.30135.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 799395 by winterz:
fix whatsthis for Enum types.
found while I was implementing tooltip support.
M +3 -3 kconfig_compiler.cpp
--- trunk/KDE/kdelibs/kdecore/kconfig_compiler/kconfig_compiler.cpp #799394:799395
@@ -1850,8 +1850,7 @@
}
QString key = paramString( (*itEntry)->key(), parameters );
- if ( !(*itEntry)->code().isEmpty())
- {
+ if ( !(*itEntry)->code().isEmpty() ) {
cpp << (*itEntry)->code() << endl;
}
if ( (*itEntry)->type() == "Enum" ) {
@@ -1872,13 +1871,14 @@
cpp << "i18n(";
cpp << quoteString((*it).label) << ");" << endl;
}
- if ( !(*it).whatsThis.isEmpty() )
+ if ( !(*it).whatsThis.isEmpty() ) {
cpp << " choice.whatsThis = ";
if ( !(*it).context.isEmpty() )
cpp << "i18nc(" + quoteString((*it).context) + ", ";
else
cpp << "i18n(";
cpp << quoteString((*it).whatsThis) << ");" << endl;
+ }
}
cpp << " values" << (*itEntry)->name() << ".append( choice );" << endl;
cpp << " }" << endl;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic