[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdev-cppcheck] /: Use cppcheck icon in actions
From:       Kevin Funk <kfunk () kde ! org>
Date:       2016-11-30 21:05:33
Message-ID: E1cCC4L-00045N-BU () code ! kde ! org
[Download RAW message or body]

Git commit aef533ebf02b8b2ec4ed27a365ffed5070e31dac by Kevin Funk.
Committed on 30/11/2016 at 21:05.
Pushed by kfunk into branch 'master'.

Use cppcheck icon in actions

M  +3    -3    plugin.cpp

https://commits.kde.org/kdev-cppcheck/aef533ebf02b8b2ec4ed27a365ffed5070e31dac

diff --git a/plugin.cpp b/plugin.cpp
index 6b13224..f8f32db 100644
--- a/plugin.cpp
+++ b/plugin.cpp
@@ -67,19 +67,19 @@ Plugin::Plugin(QObject* parent, const QVariantList&)
         KDevelop::ProblemModel::Grouping |
         KDevelop::ProblemModel::CanByPassScopeFilter);
 
-    m_actionFile = new QAction(i18n("Cppcheck (Current File)"), this);
+    m_actionFile = new QAction(QIcon::fromTheme("cppcheck"), i18n("Cppcheck (Current \
File)"), this);  connect(m_actionFile, &QAction::triggered, [this](){
         runCppcheck(false);
     });
     actionCollection()->addAction("cppcheck_file", m_actionFile);
 
-    m_actionProject = new QAction(i18n("Cppcheck (Current Project)"), this);
+    m_actionProject = new QAction(QIcon::fromTheme("cppcheck"), i18n("Cppcheck \
(Current Project)"), this);  connect(m_actionProject, &QAction::triggered, [this](){
         runCppcheck(true);
     });
     actionCollection()->addAction("cppcheck_project", m_actionProject);
 
-    m_actionProjectItem = new QAction(i18n("Cppcheck"), this);
+    m_actionProjectItem = new QAction(QIcon::fromTheme("cppcheck"), \
i18n("Cppcheck"), this);  
     connect(core()->documentController(), \
&KDevelop::IDocumentController::documentClosed,  this, &Plugin::updateActions);


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic