Commit 6bc2bec3 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix import ui.rc file

parent adb241df
Pipeline #24409 passed with stage
in 18 minutes and 56 seconds
...@@ -50,8 +50,11 @@ void CompareImportFile::compareFile() ...@@ -50,8 +50,11 @@ void CompareImportFile::compareFile()
continue; continue;
} }
if (file.endsWith(QLatin1String("ui.rc"))) { if (file.endsWith(QLatin1String("ui.rc"))) {
//TODO customize it QString fileName = file;
file.replace(QLatin1String("config/"), QLatin1String("share/kxmlgui5/kaddressbook/")); fileName.remove(QStringLiteral("config/"));
const QString fileuirc = fileName;
fileName.remove(QStringLiteral("ui.rc"));
file = QStringLiteral("share/kxmlgui5/") + fileName + QLatin1Char('/') + fileuirc;
} }
//file.replace(QStringLiteral("identities/"), QStringLiteral("config/")); //file.replace(QStringLiteral("identities/"), QStringLiteral("config/"));
file.replace(QStringLiteral("transports/"), QStringLiteral("config/")); file.replace(QStringLiteral("transports/"), QStringLiteral("config/"));
......
<?xml version='1.0'?>
<!DOCTYPE gui SYSTEM 'kpartgui.dtd'>
<gui version="417" name="kontact">
<MenuBar>
<Menu noMerge="1" name="file">
<text>&amp;File</text>
<Merge/>
<Separator/>
<Action name="file_quit"/>
<Merge/>
</Menu>
<Merge/>
<Menu noMerge="1" name="view">
<text>&amp;View</text>
<Action name="hide_show_sidebar"/>
</Menu>
<Menu noMerge="1" name="settings">
<text>&amp;Settings</text>
<Merge name="StandardToolBarMenuHandler"/>
<Merge/>
<Action name="options_configure_keybinding"/>
<Action name="options_configure_toolbars"/>
<DefineGroup name="settings_configure"/>
<Action name="settings_configure_kontact"/>
</Menu>
<Menu name="help">
<text>&amp;Help</text>
<Action name="help_introduction" append="help_whats_this_merge"/>
</Menu>
</MenuBar>
<ToolBar noMerge="1" position="Top" name="navigatorToolBar" hidden="true">
<text>Navigator</text>
<ActionList name="navigator_actionlist"/>
</ToolBar>
<ToolBar noMerge="1" position="Top" name="mainToolBar">
<text>Main Toolbar</text>
<Action name="action_new"/>
<Action name="action_sync"/>
<Merge/>
</ToolBar>
<Merge/>
<ActionProperties/>
</gui>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment