From fbf7510bc641f35191cb2425289de0fd2f6d8461 Mon Sep 17 00:00:00 2001 From: Flavio Date: Fri, 18 Jul 2014 23:06:18 +0200 Subject: [PATCH] No mouse events for spacers --- src/spacer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/spacer.cpp b/src/spacer.cpp index 07a9c55..297ec93 100644 --- a/src/spacer.cpp +++ b/src/spacer.cpp @@ -20,7 +20,10 @@ $END_LICENSE */ #include "spacer.h" -Spacer::Spacer(QWidget *parent) : QWidget(parent) { } +Spacer::Spacer(QWidget *parent) : QWidget(parent) { + setAttribute(Qt::WA_TransparentForMouseEvents); + setEnabled(false); +} QSize Spacer::sizeHint() const { return QSize(10, 1); -- 2.39.5