Commit ea3c8d13 authored by Stephan Kulow's avatar Stephan Kulow
Browse files

removed another bunch of deprecated KAction calls

svn path=/trunk/KDE/kdebase/konqueror/; revision=537677
parent ba7abbe5
......@@ -34,8 +34,9 @@ KShellCmdPlugin::KShellCmdPlugin( QObject* parent, const char* name,
if (!KAuthorized::authorizeKAction("shell_access"))
return;
new KAction( i18n( "&Execute Shell Command..." ), "run", Qt::CTRL+Qt::Key_E, this,
SLOT( slotExecuteShellCommand() ), actionCollection(), "executeshellcommand" );
KAction *action = new KAction(KIcon("run"), i18n( "&Execute Shell Command..." ), actionCollection(), "executeshellcommand" );
connect(action, SIGNAL(triggered(bool)), SLOT( slotExecuteShellCommand() ));
action->setShortcut(Qt::CTRL+Qt::Key_E);
}
void KShellCmdPlugin::slotExecuteShellCommand()
......
......@@ -62,22 +62,22 @@ KonqSidebarBookmarkModule::KonqSidebarBookmarkModule( KonqSidebarTree * parentTr
this, SLOT(slotOpenChange(Q3ListViewItem*)));
m_collection = new KActionCollection( this );
(void) new KAction( i18n("&Create New Folder"), "folder_new", 0, this,
SLOT( slotCreateFolder() ), m_collection, "create_folder");
(void) new KAction( i18n("Delete Folder"), "editdelete", 0, this,
SLOT( slotDelete() ), m_collection, "delete_folder");
(void) new KAction( i18n("Delete Bookmark"), "editdelete", 0, this,
SLOT( slotDelete() ), m_collection, "delete_bookmark");
(void) new KAction( i18n("Properties"), "edit", 0, this,
SLOT( slotProperties() ), m_collection, "item_properties");
(void) new KAction( i18n("Open in New Window"), "window_new", 0, this,
SLOT( slotOpenNewWindow() ), m_collection, "open_window");
(void) new KAction( i18n("Open in New Tab"), "tab_new", 0, this,
SLOT( slotOpenTab() ), m_collection, "open_tab");
(void) new KAction( i18n("Open Folder in Tabs"), "tab_new", 0, this,
SLOT( slotOpenTab() ), m_collection, "folder_open_tabs");
(void) new KAction( i18n("Copy Link Address"), "editcopy", 0, this,
SLOT( slotCopyLocation() ), m_collection, "copy_location");
KAction *action = new KAction(KIcon("folder_new"), i18n("&Create New Folder"), m_collection, "create_folder");
connect(action, SIGNAL(triggered(bool)), SLOT( slotCreateFolder() ));
KAction *action = new KAction(KIcon("editdelete"), i18n("Delete Folder"), m_collection, "delete_folder");
connect(action, SIGNAL(triggered(bool)), SLOT( slotDelete() ));
KAction *action = new KAction(KIcon("editdelete"), i18n("Delete Bookmark"), m_collection, "delete_bookmark");
connect(action, SIGNAL(triggered(bool)), SLOT( slotDelete() ));
KAction *action = new KAction(KIcon("edit"), i18n("Properties"), m_collection, "item_properties");
connect(action, SIGNAL(triggered(bool)), SLOT( slotProperties() ));
KAction *action = new KAction(KIcon("window_new"), i18n("Open in New Window"), m_collection, "open_window");
connect(action, SIGNAL(triggered(bool)), SLOT( slotOpenNewWindow() ));
KAction *action = new KAction(KIcon("tab_new"), i18n("Open in New Tab"), m_collection, "open_tab");
connect(action, SIGNAL(triggered(bool)), SLOT( slotOpenTab() ));
KAction *action = new KAction(KIcon("tab_new"), i18n("Open Folder in Tabs"), m_collection, "folder_open_tabs");
connect(action, SIGNAL(triggered(bool)), SLOT( slotOpenTab() ));
KAction *action = new KAction(KIcon("editcopy"), i18n("Copy Link Address"), m_collection, "copy_location");
connect(action, SIGNAL(triggered(bool)), SLOT( slotCopyLocation() ));
KStdAction::editBookmarks( KonqBookmarkManager::self(), SLOT( slotEditBookmarks() ),
m_collection, "edit_bookmarks" );
......
......@@ -77,14 +77,14 @@ KonqSidebarHistoryModule::KonqSidebarHistoryModule( KonqSidebarTree * parentTree
SLOT( slotItemExpanded( QListViewItem * )));
m_collection = new KActionCollection( this );
(void) new KAction( i18n("New &Window"), "window_new", 0, this,
SLOT( slotNewWindow() ), m_collection, "open_new");
(void) new KAction( i18n("&Remove Entry"), "editdelete", 0, this,
SLOT( slotRemoveEntry() ), m_collection, "remove");
(void) new KAction( i18n("C&lear History"), "history_clear", 0, this,
SLOT( slotClearHistory() ), m_collection, "clear");
(void) new KAction( i18n("&Preferences..."), "configure", 0, this,
SLOT( slotPreferences()), m_collection, "preferences");
KAction *action = new KAction(KIcon("window_new"), i18n("New &Window"), m_collection, "open_new");
connect(action, SIGNAL(triggered(bool)), SLOT( slotNewWindow() ));
action = new KAction(KIcon("editdelete"), i18n("&Remove Entry"), m_collection, "remove");
connect(action, SIGNAL(triggered(bool)), SLOT( slotRemoveEntry() ));
action = new KAction(KIcon("history_clear"), i18n("C&lear History"), m_collection, "clear");
connect(action, SIGNAL(triggered(bool)), SLOT( slotClearHistory() ));
action = new KAction(KIcon("configure"), i18n("&Preferences..."), m_collection, "preferences");
connect(action, SIGNAL(triggered(bool)), SLOT( slotPreferences()));
QActionGroup* sortGroup = new QActionGroup(this);
sortGroup->setExclusive(true);
......
......@@ -923,22 +923,22 @@ void KonqSidebarTree::showToplevelContextMenu()
{
m_collection = new KActionCollection( this);
m_collection->setObjectName("bookmark actions");
(void) new KAction( i18n("&Create New Folder..."), "folder_new", 0, this,
SLOT( slotCreateFolder() ), m_collection, "create_folder");
(void) new KAction( i18n("Delete Folder"), "editdelete", 0, this,
SLOT( slotDelete() ), m_collection, "delete_folder");
KAction *action = new KAction( i18n("Rename"), m_collection, "rename");
KAction *action = new KAction(KIcon("folder_new"), i18n("&Create New Folder..."), m_collection, "create_folder");
connect(action, SIGNAL(triggered(bool)), SLOT( slotCreateFolder() ));
action = new KAction(KIcon("editdelete"), i18n("Delete Folder"), m_collection, "delete_folder");
connect(action, SIGNAL(triggered(bool)), SLOT( slotDelete() ));
action = new KAction( i18n("Rename"), m_collection, "rename");
connect(action, SIGNAL(triggered(bool) ), SLOT( slotRename() ));
(void) new KAction( i18n("Delete Link"), "editdelete", 0, this,
SLOT( slotDelete() ), m_collection, "delete_link");
(void) new KAction( i18n("Properties"), "edit", 0, this,
SLOT( slotProperties() ), m_collection, "item_properties");
(void) new KAction( i18n("Open in New Window"), "window_new", 0, this,
SLOT( slotOpenNewWindow() ), m_collection, "open_window");
(void) new KAction( i18n("Open in New Tab"), "tab_new", 0, this,
SLOT( slotOpenTab() ), m_collection, "open_tab");
(void) new KAction( i18n("Copy Link Address"), "editcopy", 0, this,
SLOT( slotCopyLocation() ), m_collection, "copy_location");
action = new KAction(KIcon("editdelete"), i18n("Delete Link"), m_collection, "delete_link");
connect(action, SIGNAL(triggered(bool)), SLOT( slotDelete() ));
action = new KAction(KIcon("edit"), i18n("Properties"), m_collection, "item_properties");
connect(action, SIGNAL(triggered(bool)), SLOT( slotProperties() ));
action = new KAction(KIcon("window_new"), i18n("Open in New Window"), m_collection, "open_window");
connect(action, SIGNAL(triggered(bool)), SLOT( slotOpenNewWindow() ));
action = new KAction(KIcon("tab_new"), i18n("Open in New Tab"), m_collection, "open_tab");
connect(action, SIGNAL(triggered(bool)), SLOT( slotOpenTab() ));
action = new KAction(KIcon("editcopy"), i18n("Copy Link Address"), m_collection, "copy_location");
connect(action, SIGNAL(triggered(bool)), SLOT( slotCopyLocation() ));
}
QMenu *menu = new QMenu;
......
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