aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-10-19 16:53:04 -0400
committerKen Moore <moorekou@gmail.com>2015-10-19 16:53:04 -0400
commit2744f4f8cad1df2b7f3b686b5d3c3dfa49d3af48 (patch)
treec6cc2883e89b424b662820a0012360557fae46d5 /lumina-desktop
parentUpdate how the PC-BSD overlay files for Lumina are installed. Now there is a ... (diff)
downloadlumina-2744f4f8cad1df2b7f3b686b5d3c3dfa49d3af48.tar.gz
lumina-2744f4f8cad1df2b7f3b686b5d3c3dfa49d3af48.tar.bz2
lumina-2744f4f8cad1df2b7f3b686b5d3c3dfa49d3af48.zip
Convert the desktop-plugin "applauncher" (desktop icons) to use a double-click for launching items instead of a single click.
Diffstat (limited to 'lumina-desktop')
-rw-r--r--lumina-desktop/LSession.cpp4
-rw-r--r--lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp2
-rw-r--r--lumina-desktop/desktop-plugins/applauncher/OutlineToolButton.h15
3 files changed, 18 insertions, 3 deletions
diff --git a/lumina-desktop/LSession.cpp b/lumina-desktop/LSession.cpp
index cd78cce2..753cbeb9 100644
--- a/lumina-desktop/LSession.cpp
+++ b/lumina-desktop/LSession.cpp
@@ -436,11 +436,11 @@ void LSession::checkUserFiles(){
dset = QDir::homePath()+"/.lumina/LuminaDE/lumina-open.conf";
if(!QFile::exists(dset)){
firstrun = true;
- if(QFile::exists(LOS::LuminaShare()+"defaultapps.conf")){
+ /*if(QFile::exists(LOS::LuminaShare()+"defaultapps.conf")){
if( QFile::copy(LOS::LuminaShare()+"defaultapps.conf", dset) ){
QFile::setPermissions(dset, QFile::ReadUser | QFile::WriteUser | QFile::ReadOwner | QFile::WriteOwner);
}
- }
+ }*/
}
//Check the fluxbox configuration files
diff --git a/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp b/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp
index e1f55771..5f429c5f 100644
--- a/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp
+++ b/lumina-desktop/desktop-plugins/applauncher/AppLauncherPlugin.cpp
@@ -14,7 +14,7 @@ AppLauncherPlugin::AppLauncherPlugin(QWidget* parent, QString ID) : LDPlugin(par
button->setText("...\n..."); //Need to set something here so that initial sizing works properly
button->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding);
lay->addWidget(button, 0, Qt::AlignCenter);
- connect(button, SIGNAL(clicked()), this, SLOT(buttonClicked()) );
+ connect(button, SIGNAL(DoubleClicked()), this, SLOT(buttonClicked()) );
//menu = new QMenu(this);
/*int icosize = this->readSetting("iconsize",-1).toInt();
if(icosize <1){
diff --git a/lumina-desktop/desktop-plugins/applauncher/OutlineToolButton.h b/lumina-desktop/desktop-plugins/applauncher/OutlineToolButton.h
index 7c8c012d..68540292 100644
--- a/lumina-desktop/desktop-plugins/applauncher/OutlineToolButton.h
+++ b/lumina-desktop/desktop-plugins/applauncher/OutlineToolButton.h
@@ -18,6 +18,7 @@
#include <QStylePainter>
#include <QFont>
#include <QDebug>
+#include <QMouseEvent>
class OutlineToolButton : public QToolButton{
@@ -31,7 +32,21 @@ public:
}
~OutlineToolButton(){}
+signals:
+ void DoubleClicked();
+
protected:
+ void mouseDoubleClickEvent(QMouseEvent *ev){
+ ev->accept();
+ emit DoubleClicked();
+ }
+ void mousePressEvent(QMouseEvent *ev){
+ ev->ignore();
+ }
+ void mouseReleaseEvent(QMouseEvent *ev){
+ ev->ignore();
+ }
+
void paintEvent(QPaintEvent*){
/* NOTE: This is what a standard QToolButton performs (peeked at Qt source code for this tidbit)
QStylePainter p(this);
bgstack15