From: Flavio Date: Fri, 18 Jul 2014 21:06:18 +0000 (+0200) Subject: No mouse events for spacers X-Git-Tag: 2.2~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fbf7510bc641f35191cb2425289de0fd2f6d8461;p=minitube No mouse events for spacers --- 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);