From 94815093253e5db99aa100f0834cd6c74c96a91a Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 31 Dec 2010 10:59:46 +0000 Subject: Lock panels per default and allow to unlock them like in Amarok. BUG: 229811 FIXED-IN: 4.7.0 svn path=/trunk/KDE/kdebase/apps/; revision=1210424 --- src/panels/panel.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/panels/panel.cpp') diff --git a/src/panels/panel.cpp b/src/panels/panel.cpp index 6d11422d8..e90970c6e 100644 --- a/src/panels/panel.cpp +++ b/src/panels/panel.cpp @@ -23,7 +23,8 @@ Panel::Panel(QWidget* parent) : QWidget(parent), - m_url(KUrl()) + m_url(), + m_customContextMenuActions() { } @@ -36,6 +37,16 @@ KUrl Panel::url() const return m_url; } +void Panel::setCustomContextMenuActions(const QList& actions) +{ + m_customContextMenuActions = actions; +} + +QList Panel::customContextMenuActions() const +{ + return m_customContextMenuActions; +} + void Panel::setUrl(const KUrl& url) { if (url.equals(m_url, KUrl::CompareWithoutTrailingSlash)) { -- cgit v1.3