summaryrefslogtreecommitdiffstats
path: root/src/widget/wwidgetgroup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widget/wwidgetgroup.cpp')
-rw-r--r--src/widget/wwidgetgroup.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/widget/wwidgetgroup.cpp b/src/widget/wwidgetgroup.cpp
index 4d9bd634d3..edc3e8d521 100644
--- a/src/widget/wwidgetgroup.cpp
+++ b/src/widget/wwidgetgroup.cpp
@@ -6,6 +6,7 @@
#include "widget/wwidget.h"
#include "widget/wpixmapstore.h"
+#include "util/debug.h"
WWidgetGroup::WWidgetGroup(QWidget* pParent)
: QFrame(pParent),
@@ -150,3 +151,17 @@ void WWidgetGroup::resizeEvent(QResizeEvent* re) {
// Paint things styled by style sheet
QFrame::resizeEvent(re);
}
+
+bool WWidgetGroup::event(QEvent* pEvent) {
+ if (pEvent->type() == QEvent::ToolTip) {
+ updateTooltip();
+ }
+ return QFrame::event(pEvent);
+}
+
+void WWidgetGroup::fillDebugTooltip(QStringList* debug) {
+ WBaseWidget::fillDebugTooltip(debug);
+ *debug << QString("LayoutAlignment: %1").arg(toDebugString(layoutAlignment()))
+ << QString("LayoutContentsMargins: %1").arg(toDebugString(layoutContentsMargins()))
+ << QString("LayoutSpacing: %1").arg(layoutSpacing());
+}