changeset 11:98485ebbdb86 default tip

LayoutView: WidgetViewBox fix
author Goffi <goffi@goffi.org>
date Sat, 27 Aug 2011 00:31:20 +0200
parents 877a005c2b42
children
files layout_view.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/layout_view.cpp	Fri Aug 26 15:58:46 2011 +0200
+++ b/layout_view.cpp	Sat Aug 27 00:31:20 2011 +0200
@@ -37,10 +37,11 @@
     : WidgetView(name)
 {
     setWidget(new LayoutView(0, HORIZONTAL));
+    setWidgetResizable(true);
 }
 
 LayoutView::LayoutView(QWidget* parent, LayoutDirection direction)
-    : m_direction(direction)
+    : QWidget(parent), m_direction(direction)
 {
     setAcceptDrops(true);
     if (m_direction == VERTICAL)
@@ -86,7 +87,6 @@
     int ref_pos = m_direction == VERTICAL ? event->pos().y() : event->pos().x();
     int hint_start = 0;
     int pos_start, pos_end;
-    QList<QWidget*>  _children = findChildren<QWidget*>("");
    
     QWidget* wid = 0;