Message info
 
To:kde-commits@kde.org From:Boudewijn Rempt Subject:[calligra/krita-texturizer_option-rempt] krita/ui/widgets: add default value for QWidget *parent param Date:Sun, 18 Mar 2012 15:55:04 +0100 (CET)
 

Git commit 20a0489c33ea61fa9ed26788528bdd1a2cceeed1 by Boudewijn Rempt.
Committed on 18/03/2012 at 15:27.
Pushed by rempt into branch 'krita-texturizer_option-rempt'.

add default value for QWidget *parent param

M +3 -1 krita/ui/widgets/kis_multipliers_double_slider_spinbox.cpp
M +1 -1 krita/ui/widgets/kis_multipliers_double_slider_spinbox.h

http://commits.kde.org/calligra/20a0489c33ea61fa9ed26788528bdd1a2cceeed1

diff --git a/krita/ui/widgets/kis_multipliers_double_slider_spinbox.cpp b/krita/ui/widgets/kis_multipliers_double_slider_spinbox.cpp
index 7a906bd..5ebce1c 100644
--- a/krita/ui/widgets/kis_multipliers_double_slider_spinbox.cpp
+++ b/krita/ui/widgets/kis_multipliers_double_slider_spinbox.cpp
@@ -42,7 +42,9 @@ void KisMultipliersDoubleSliderSpinBox::Private::updateRange()
form.sliderSpinBox->setRange(m * min, m * max, decimals);
}

-KisMultipliersDoubleSliderSpinBox::KisMultipliersDoubleSliderSpinBox(QWidget* _parent) : QWidget(_parent), d(new Private)
+KisMultipliersDoubleSliderSpinBox::KisMultipliersDoubleSliderSpinBox(QWidget* _parent)
+ : QWidget(_parent)
+ , d(new Private)
{
d->form.setupUi(this);
addMultiplier(1.0);
diff --git a/krita/ui/widgets/kis_multipliers_double_slider_spinbox.h b/krita/ui/widgets/kis_multipliers_double_slider_spinbox.h
index 6b16edb..8e9dee7 100644
--- a/krita/ui/widgets/kis_multipliers_double_slider_spinbox.h
+++ b/krita/ui/widgets/kis_multipliers_double_slider_spinbox.h
@@ -33,7 +33,7 @@ class KisDoubleSliderSpinBox;
class KRITAUI_EXPORT KisMultipliersDoubleSliderSpinBox : public QWidget {
Q_OBJECT
public:
- KisMultipliersDoubleSliderSpinBox(QWidget* _parent);
+ KisMultipliersDoubleSliderSpinBox(QWidget* _parent = 0);
~KisMultipliersDoubleSliderSpinBox();

void addMultiplier(double v);