comparison layout_widget.cpp @ 9:0d7875c26974

layout designer: hints on widget placement during drag and drop
author Goffi <goffi@goffi.org>
date Fri, 26 Aug 2011 12:15:21 +0200
parents c63d67895cbe
children
comparison
equal deleted inserted replaced
8:c63d67895cbe 9:0d7875c26974
30 } 30 }
31 31
32 LayoutWidget::LayoutWidget(const QString& name, const QString& icon) 32 LayoutWidget::LayoutWidget(const QString& name, const QString& icon)
33 : m_name(name), m_icon(icon) 33 : m_name(name), m_icon(icon)
34 { 34 {
35 qDebug() << "LayoutWidget constructeur (" << name <<")";
36 35
37 } 36 }
38 37
39 LayoutWidget::~LayoutWidget() 38 LayoutWidget::~LayoutWidget()
40 { 39 {
41 qDebug() << "LayoutWidget destructeur";
42 40
43 } 41 }
44 42
45 const QString& LayoutWidget::getName() const 43 const QString& LayoutWidget::getName() const
46 { 44 {
52 { 50 {
53 } 51 }
54 52
55 LayoutWidgetModel::~LayoutWidgetModel() 53 LayoutWidgetModel::~LayoutWidgetModel()
56 { 54 {
57
58 qDebug() << "Destructeur de LayoutWidgetModel";
59 while (!m_layout_widgets.isEmpty()) 55 while (!m_layout_widgets.isEmpty())
60 delete m_layout_widgets.takeFirst(); 56 delete m_layout_widgets.takeFirst();
61 qDebug() << "Fin Destructeur de LayoutWidgetModel";
62 } 57 }
63 58
64 int LayoutWidgetModel::rowCount(const QModelIndex &parent) const 59 int LayoutWidgetModel::rowCount(const QModelIndex &parent) const
65 { 60 {
66 return m_layout_widgets.size(); 61 return m_layout_widgets.size();