Skip to content
Snippets Groups Projects
Commit 66e3021a authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Small cleanup


Change-Id: Ic53d813bff7e30fa560c5d0797eeaa3a4880cdec
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent 57c09790
No related branches found
No related tags found
No related merge requests found
......@@ -49,13 +49,7 @@ void BehaviorDialog::registerDeclarativeType()
qmlRegisterType<QmlDesigner::BehaviorWidget>("Bauhaus",1,0,"BehaviorWidget");
}
BehaviorWidget::BehaviorWidget() : QPushButton(), m_BehaviorDialog(new BehaviorDialog(0))
{
setCheckable(true);
connect(this, SIGNAL(toggled(bool)), this, SLOT(buttonPressed(bool)));
}
BehaviorWidget::BehaviorWidget(QWidget *parent) : QPushButton(parent), m_BehaviorDialog(new BehaviorDialog(0))
BehaviorWidget::BehaviorWidget(QWidget *parent) : QPushButton(parent), m_BehaviorDialog(new BehaviorDialog)
{
setCheckable(true);
connect(this, SIGNAL(toggled(bool)), this, SLOT(buttonPressed(bool)));
......
......@@ -55,9 +55,7 @@ class BehaviorWidget : public QPushButton
Q_OBJECT
public:
BehaviorWidget();
BehaviorWidget(QWidget* parent);
explicit BehaviorWidget(QWidget *parent = 0);
ModelNode modelNode() const {return m_modelNode; }
QString propertyName() const {return m_propertyName; }
......@@ -79,7 +77,7 @@ class BehaviorDialog : public QDialog
{
Q_OBJECT
public:
BehaviorDialog(QWidget *parent);
explicit BehaviorDialog(QWidget *parent = 0);
void setup(const ModelNode &node, const QString propertyName);
public slots:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment