Commit e79476cb authored by Laurent Montel's avatar Laurent Montel 😁

Add icon for refresh page. Put it on toolbar

parent e841b4fb
......@@ -127,7 +127,7 @@ void ContactEditorMainWindow::setupActions()
connect(mManageTheme, SIGNAL(triggered(bool)),SLOT(slotManageTheme()));
actionCollection()->addAction( QLatin1String( "manage_themes" ), mManageTheme );
mUpdateView = new KAction(i18n("Update view"), this);
mUpdateView = new KAction(KIcon(QLatin1String("view-refresh")), i18n("Update view"), this);
mUpdateView->setShortcut(QKeySequence( Qt::Key_F5 ));
connect(mUpdateView, SIGNAL(triggered(bool)),SLOT(slotUpdateView()));
actionCollection()->addAction( QLatin1String( "update_view" ), mUpdateView );
......
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
<kpartgui name="contactthemeeditor" version="1">
<kpartgui name="contactthemeeditor" version="2">
<MenuBar>
<Menu name="file" >
<Action name="new_theme" />
......@@ -23,5 +23,8 @@
<Action name="update_view" />
</Menu>
</MenuBar>
<ToolBar name="mainToolBar" fullWidth="true" >
<Action name="update_view" />
</ToolBar>
</kpartgui>
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
<kpartgui name="headerthemeeditor" version="3">
<kpartgui name="headerthemeeditor" version="4">
<MenuBar>
<Menu name="file" >
<Action name="new_theme" />
......@@ -26,5 +26,9 @@
<Action name="update_view" />
</Menu>
</MenuBar>
<ToolBar name="mainToolBar" fullWidth="true" >
<Action name="update_view" />
</ToolBar>
</kpartgui>
......@@ -137,7 +137,7 @@ void ThemeEditorMainWindow::setupActions()
connect(mManageTheme, SIGNAL(triggered(bool)),SLOT(slotManageTheme()));
actionCollection()->addAction( QLatin1String( "manage_themes" ), mManageTheme );
mUpdateView = new KAction(i18n("Update view"), this);
mUpdateView = new KAction(KIcon(QLatin1String("view-refresh")), i18n("Update view"), this);
mUpdateView->setShortcut(QKeySequence( Qt::Key_F5 ));
connect(mUpdateView, SIGNAL(triggered(bool)),SLOT(slotUpdateView()));
actionCollection()->addAction( QLatin1String( "update_view" ), mUpdateView );
......
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