mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kdewidgets: remove unused map entries
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
91120db60d
commit
b9a20d1f09
1 changed files with 1 additions and 4 deletions
|
@ -191,8 +191,6 @@ QString buildWidgetClass( const QString &name, KConfig &_input, const QString &g
|
||||||
QString widgetIconPath = QString::fromLatin1(DATA_INSTALL_DIR "/kdewidgets/pics/%1.png").arg( widgetIconName );
|
QString widgetIconPath = QString::fromLatin1(DATA_INSTALL_DIR "/kdewidgets/pics/%1.png").arg( widgetIconName );
|
||||||
|
|
||||||
defMap.insert( "Group", input.readEntry( "Group", group ).replace( '\"', "\\\"" ) );
|
defMap.insert( "Group", input.readEntry( "Group", group ).replace( '\"', "\\\"" ) );
|
||||||
defMap.insert( "IconSet", input.readEntry( "IconSet", QString(name.toLower() + ".png") ).replace( ':', '_' ) );
|
|
||||||
defMap.insert( "Pixmap", name.toLower().replace( ':', '_' ) + "_xpm" );
|
|
||||||
defMap.insert( "IncludeFile", input.readEntry( "IncludeFile", QString(name.toLower() + ".h") ).remove( ':' ) );
|
defMap.insert( "IncludeFile", input.readEntry( "IncludeFile", QString(name.toLower() + ".h") ).remove( ':' ) );
|
||||||
defMap.insert( "ToolTip", input.readEntry( "ToolTip", QString(name + " Widget") ).replace( '\"', "\\\"" ) );
|
defMap.insert( "ToolTip", input.readEntry( "ToolTip", QString(name + " Widget") ).replace( '\"', "\\\"" ) );
|
||||||
defMap.insert( "WhatsThis", input.readEntry( "WhatsThis", QString(name + " Widget") ).replace( '\"', "\\\"" ) );
|
defMap.insert( "WhatsThis", input.readEntry( "WhatsThis", QString(name + " Widget") ).replace( '\"', "\\\"" ) );
|
||||||
|
@ -206,8 +204,7 @@ QString buildWidgetClass( const QString &name, KConfig &_input, const QString &g
|
||||||
// If domXml is empty then we shoud call base class function
|
// If domXml is empty then we shoud call base class function
|
||||||
if ( domXml.isEmpty() ) {
|
if ( domXml.isEmpty() ) {
|
||||||
domXml = QLatin1String("QCustomWidget::domXml()");
|
domXml = QLatin1String("QCustomWidget::domXml()");
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
// Wrap domXml value into QLatin1String
|
// Wrap domXml value into QLatin1String
|
||||||
domXml = QString::fromLatin1("QLatin1String(\"%1\")").arg(domXml.replace( '\"', "\\\"" ));
|
domXml = QString::fromLatin1("QLatin1String(\"%1\")").arg(domXml.replace( '\"', "\\\"" ));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue