From fb966c28c45b7391d3034dd56464604d88fdaffa Mon Sep 17 00:00:00 2001 From: megabigbug Date: Thu, 23 Jul 2009 21:43:29 +0200 Subject: Add icons for "history panel" and "page source" items --- src/historymenu.cpp | 3 ++- src/mainwindow.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/historymenu.cpp b/src/historymenu.cpp index 4f11d82c..cdf8d4d7 100644 --- a/src/historymenu.cpp +++ b/src/historymenu.cpp @@ -76,8 +76,9 @@ void HistoryMenu::postPopulated() addSeparator(); QAction *showAllAction = Application::instance()->mainWindow()->actionByName("show_history_panel"); + showAllAction->setIcon(KIcon("view-history")); addAction(showAllAction); - + KAction *clearAction = new KAction(i18n("Clear History"), this); connect(clearAction, SIGNAL(triggered()), this, SLOT(clearHistory())); addAction(clearAction); diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 1ac65913..471a469a 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -276,6 +276,7 @@ void MainWindow::setupActions() connect(a, SIGNAL(triggered(bool)), this, SLOT(slotViewTextSmaller())); a = new KAction(i18n("Page S&ource"), this); + a->setIcon(KIcon("application-xhtml+xml")); actionCollection()->addAction(QLatin1String("page_source"), a); connect(a, SIGNAL(triggered(bool)), this, SLOT(slotViewPageSource())); @@ -298,7 +299,7 @@ void MainWindow::setupActions() m_historyForwardAction = new KAction(KIcon("go-next"), i18n("Forward"), this); connect(m_historyForwardAction, SIGNAL(triggered(bool)), this, SLOT(slotOpenNext())); actionCollection()->addAction(QLatin1String("history_forward"), m_historyForwardAction); - + // =================== Tab Actions a = new KAction(KIcon("tab-new"), i18n("New &Tab"), this); a->setShortcut(KShortcut(Qt::CTRL + Qt::Key_T, Qt::CTRL + Qt::Key_N)); -- cgit v1.2.1