aboutsummaryrefslogtreecommitdiff
path: root/lumina-fm/widgets/DDListWidgets.h
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-fm/widgets/DDListWidgets.h')
-rw-r--r--lumina-fm/widgets/DDListWidgets.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/lumina-fm/widgets/DDListWidgets.h b/lumina-fm/widgets/DDListWidgets.h
index d47c7ee4..2d885192 100644
--- a/lumina-fm/widgets/DDListWidgets.h
+++ b/lumina-fm/widgets/DDListWidgets.h
@@ -111,6 +111,14 @@ protected:
if(ev->button() != Qt::RightButton && ev->button() != Qt::LeftButton){ ev->ignore(); }
else{ QListWidget::mouseReleaseEvent(ev); } //pass it along to the widget
}
+ void mousePressEvent(QMouseEvent *ev){
+ if(ev->button() != Qt::RightButton && ev->button() != Qt::LeftButton){ ev->ignore(); }
+ else{ QListWidget::mousePressEvent(ev); } //pass it along to the widget
+ }
+ /*void mouseMoveEvent(QMouseEvent *ev){
+ if(ev->button() != Qt::RightButton && ev->button() != Qt::LeftButton){ ev->ignore(); }
+ else{ QListWidget::mouseMoveEvent(ev); } //pass it along to the widget
+ }*/
};
//================
@@ -199,5 +207,13 @@ protected:
if(ev->button() != Qt::RightButton && ev->button() != Qt::LeftButton){ ev->ignore(); }
else{ QTreeWidget::mouseReleaseEvent(ev); } //pass it along to the widget
}
+ void mousePressEvent(QMouseEvent *ev){
+ if(ev->button() != Qt::RightButton && ev->button() != Qt::LeftButton){ ev->ignore(); }
+ else{ QTreeWidget::mousePressEvent(ev); } //pass it along to the widget
+ }
+ /*void mouseMoveEvent(QMouseEvent *ev){
+ if(ev->button() != Qt::RightButton && ev->button() != Qt::LeftButton){ ev->ignore(); }
+ else{ QTreeWidget::mouseMoveEvent(ev); } //pass it along to the widget
+ }*/
};
#endif \ No newline at end of file
bgstack15