[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [plasmate/terietor/tools] plasmoidviewer: context menu on containments
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2012-08-16 18:41:51
Message-ID: 20120816184151.576AAA60D1 () git ! kde ! org
[Download RAW message or body]
Git commit 650245d20e0989e822ca48a275033d5fc46e7520 by Aaron J. Seigo.
Committed on 22/12/2010 at 22:38.
Pushed by tsiapaliwkas into branch 'terietor/tools'.
context menu on containments
svn path=/trunk/KDE/kdebase/workspace/; revision=1208688
M +10 -1 plasmoidviewer/fullview.cpp
http://commits.kde.org/plasmate/650245d20e0989e822ca48a275033d5fc46e7520
diff --git a/plasmoidviewer/fullview.cpp b/plasmoidviewer/fullview.cpp
index f5c31b3..d3e37ad 100644
--- a/plasmoidviewer/fullview.cpp
+++ b/plasmoidviewer/fullview.cpp
@@ -38,8 +38,9 @@
#include <Plasma/AccessManager>
#include <Plasma/AccessAppletJob>
-#include <Plasma/Package>
#include <Plasma/Containment>
+#include <Plasma/ContainmentActions>
+#include <Plasma/Package>
#include <Plasma/Wallpaper>
using namespace Plasma;
@@ -81,6 +82,14 @@ FullView::FullView(const QString &ff, const QString &loc, QWidget \
*parent) m_location = Plasma::LeftEdge;
}
+ Plasma::ContainmentActionsPluginsConfig containmentActionPlugins;
+ containmentActionPlugins.addPlugin(Qt::NoModifier, Qt::RightButton, \
"contextmenu"); +
+ m_corona.setContainmentActionsDefaults(Plasma::Containment::DesktopContainment, \
containmentActionPlugins); + \
m_corona.setContainmentActionsDefaults(Plasma::Containment::CustomContainment, \
containmentActionPlugins); + \
m_corona.setContainmentActionsDefaults(Plasma::Containment::PanelContainment, \
containmentActionPlugins); + \
m_corona.setContainmentActionsDefaults(Plasma::Containment::CustomPanelContainment, \
containmentActionPlugins); +
setScene(&m_corona);
connect(&m_corona, SIGNAL(sceneRectChanged(QRectF)), this, \
SLOT(sceneRectChanged(QRectF))); setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic