aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2016-11-10 12:38:56 -0500
committerKen Moore <ken@ixsystems.com>2016-11-10 12:38:56 -0500
commit634557bad1b1b6781fe693d37b480897cc55376e (patch)
treef5f26c9ffdbaeeef1082ed3260b44cd2bde0f6d2 /src-qt5/core/lumina-desktop
parentDisable the theme engine from the core-utils. (diff)
downloadlumina-634557bad1b1b6781fe693d37b480897cc55376e.tar.gz
lumina-634557bad1b1b6781fe693d37b480897cc55376e.tar.bz2
lumina-634557bad1b1b6781fe693d37b480897cc55376e.zip
Add pass-through for context menu requests on many desktop plugins.
This should allow the user to click almost anywhere on the plugin to actually see the menu for managing the plugin itself.
Diffstat (limited to 'src-qt5/core/lumina-desktop')
-rw-r--r--src-qt5/core/lumina-desktop/desktop-plugins/audioplayer/PlayerWidget.cpp4
-rw-r--r--src-qt5/core/lumina-desktop/desktop-plugins/notepad/NotepadPlugin.cpp1
-rw-r--r--src-qt5/core/lumina-desktop/desktop-plugins/rssreader/RSSFeedPlugin.cpp2
3 files changed, 5 insertions, 2 deletions
diff --git a/src-qt5/core/lumina-desktop/desktop-plugins/audioplayer/PlayerWidget.cpp b/src-qt5/core/lumina-desktop/desktop-plugins/audioplayer/PlayerWidget.cpp
index 4d293b39..722a5865 100644
--- a/src-qt5/core/lumina-desktop/desktop-plugins/audioplayer/PlayerWidget.cpp
+++ b/src-qt5/core/lumina-desktop/desktop-plugins/audioplayer/PlayerWidget.cpp
@@ -30,6 +30,8 @@ PlayerWidget::PlayerWidget(QWidget *parent) : QWidget(parent), ui(new Ui::Player
ui->tool_add->setMenu(addMenu);
updatinglists = false; //start off as false
+
+ ui->combo_playlist->setContextMenuPolicy(Qt::NoContextMenu);
LoadIcons();
playerStateChanged(); //update button visibility
@@ -266,4 +268,4 @@ AudioPlayerPlugin::AudioPlayerPlugin(QWidget *parent, QString ID) : LDPlugin(par
AudioPlayerPlugin::~AudioPlayerPlugin(){
//qDebug() << "Remove AudioPlayerPlugin";
-} \ No newline at end of file
+}
diff --git a/src-qt5/core/lumina-desktop/desktop-plugins/notepad/NotepadPlugin.cpp b/src-qt5/core/lumina-desktop/desktop-plugins/notepad/NotepadPlugin.cpp
index a2549acf..fe26941e 100644
--- a/src-qt5/core/lumina-desktop/desktop-plugins/notepad/NotepadPlugin.cpp
+++ b/src-qt5/core/lumina-desktop/desktop-plugins/notepad/NotepadPlugin.cpp
@@ -60,6 +60,7 @@ NotePadPlugin::NotePadPlugin(QWidget* parent, QString ID) : LDPlugin(parent, ID)
edit->setReadOnly(false);
edit->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
vlay->addWidget(edit);
+ edit->setContextMenuPolicy(Qt::NoContextMenu);
//Now load the new file-based system for saving notes
//qDebug() << "Saving a new setting";
diff --git a/src-qt5/core/lumina-desktop/desktop-plugins/rssreader/RSSFeedPlugin.cpp b/src-qt5/core/lumina-desktop/desktop-plugins/rssreader/RSSFeedPlugin.cpp
index 8dc58e0a..c330d6c0 100644
--- a/src-qt5/core/lumina-desktop/desktop-plugins/rssreader/RSSFeedPlugin.cpp
+++ b/src-qt5/core/lumina-desktop/desktop-plugins/rssreader/RSSFeedPlugin.cpp
@@ -20,7 +20,7 @@ RSSFeedPlugin::RSSFeedPlugin(QWidget* parent, QString ID) : LDPlugin(parent, ID)
//Load the global settings
setprefix = "rssreader/"; //this structure/prefix should be used for *all* plugins of this type
RSS = new RSSReader(this, setprefix);
-
+ ui->text_feed->setContextMenuPolicy(Qt::NoContextMenu);
//Create the options menu
optionsMenu = new QMenu(this);
ui->tool_options->setMenu(optionsMenu);
bgstack15