diff options
| author | Peter Penz <[email protected]> | 2010-12-31 10:59:46 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2010-12-31 10:59:46 +0000 |
| commit | 94815093253e5db99aa100f0834cd6c74c96a91a (patch) | |
| tree | 725cbfd9d8b412198a143153cbadf06f0ee724c9 /src/panels/panel.cpp | |
| parent | f7bbe21b5b2d3bc85dcba1d03494879aac9e37c7 (diff) | |
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
Diffstat (limited to 'src/panels/panel.cpp')
| -rw-r--r-- | src/panels/panel.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
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<QAction*>& actions) +{ + m_customContextMenuActions = actions; +} + +QList<QAction*> Panel::customContextMenuActions() const +{ + return m_customContextMenuActions; +} + void Panel::setUrl(const KUrl& url) { if (url.equals(m_url, KUrl::CompareWithoutTrailingSlash)) { |
