diff --git a/widgets/checkbox.cpp b/widgets/checkbox.cpp index 98a2fa5de..e37405454 100644 --- a/widgets/checkbox.cpp +++ b/widgets/checkbox.cpp @@ -87,7 +87,7 @@ CheckBox::CheckBox(QGraphicsWidget *parent) { QCheckBox *native = new QCheckBox; connect(native, SIGNAL(toggled(bool)), this, SIGNAL(toggled(bool))); - setWidget(native); + d->setWidget(native); native->setWindowIcon(QIcon()); native->setAttribute(Qt::WA_NoSystemBackground); diff --git a/widgets/combobox.cpp b/widgets/combobox.cpp index 48a492346..d52eb0ab7 100644 --- a/widgets/combobox.cpp +++ b/widgets/combobox.cpp @@ -166,7 +166,7 @@ void ComboBox::setNativeWidget(KComboBox *nativeWidget) connect(nativeWidget, SIGNAL(currentIndexChanged(const QString &)), this, SIGNAL(textChanged(const QString &))); - setWidget(nativeWidget); + d->setWidget(nativeWidget); nativeWidget->setWindowIcon(QIcon()); nativeWidget->setAttribute(Qt::WA_NoSystemBackground); diff --git a/widgets/groupbox.cpp b/widgets/groupbox.cpp index 4b8379c7f..0abc2ca61 100644 --- a/widgets/groupbox.cpp +++ b/widgets/groupbox.cpp @@ -50,7 +50,7 @@ GroupBox::GroupBox(QGraphicsWidget *parent) d(new GroupBoxPrivate(this)) { QGroupBox *native = new QGroupBox; - setWidget(native); + d->setWidget(native); native->setWindowIcon(QIcon()); native->setAttribute(Qt::WA_NoSystemBackground); d->initTheming(); diff --git a/widgets/label.cpp b/widgets/label.cpp index b73aacb57..a216c6bd7 100644 --- a/widgets/label.cpp +++ b/widgets/label.cpp @@ -105,7 +105,7 @@ Label::Label(QGraphicsWidget *parent) connect(native, SIGNAL(linkActivated(QString)), this, SIGNAL(linkActivated(QString))); connect(native, SIGNAL(linkHovered(QString)), this, SIGNAL(linkHovered(QString))); - setWidget(native); + d->setWidget(native); d->initTheming(); } diff --git a/widgets/lineedit.cpp b/widgets/lineedit.cpp index 708ef3a70..d000439bf 100644 --- a/widgets/lineedit.cpp +++ b/widgets/lineedit.cpp @@ -130,7 +130,7 @@ void LineEdit::setNativeWidget(KLineEdit *nativeWidget) nativeWidget->setWindowFlags(nativeWidget->windowFlags()|Qt::BypassGraphicsProxyWidget); - setWidget(nativeWidget); + d->setWidget(nativeWidget); nativeWidget->setWindowIcon(QIcon()); nativeWidget->setAttribute(Qt::WA_NoSystemBackground); diff --git a/widgets/radiobutton.cpp b/widgets/radiobutton.cpp index dd9952b18..67e08288c 100644 --- a/widgets/radiobutton.cpp +++ b/widgets/radiobutton.cpp @@ -77,7 +77,7 @@ RadioButton::RadioButton(QGraphicsWidget *parent) { QRadioButton *native = new QRadioButton; connect(native, SIGNAL(toggled(bool)), this, SIGNAL(toggled(bool))); - setWidget(native); + d->setWidget(native); native->setWindowIcon(QIcon()); native->setAttribute(Qt::WA_NoSystemBackground); d->initTheming(); diff --git a/widgets/spinbox.cpp b/widgets/spinbox.cpp index bacdabdca..9c1c3fe66 100644 --- a/widgets/spinbox.cpp +++ b/widgets/spinbox.cpp @@ -67,7 +67,7 @@ SpinBox::SpinBox(QGraphicsWidget *parent) d->focusIndicator = new FocusIndicator(this, "widgets/lineedit"); - setWidget(native); + d->setWidget(native); native->setWindowIcon(QIcon()); native->setAttribute(Qt::WA_NoSystemBackground); native->setAutoFillBackground(false); diff --git a/widgets/textedit.cpp b/widgets/textedit.cpp index 633aec694..271f6cbfc 100644 --- a/widgets/textedit.cpp +++ b/widgets/textedit.cpp @@ -108,7 +108,7 @@ void TextEdit::setNativeWidget(KTextEdit *nativeWidget) connect(nativeWidget, SIGNAL(textChanged()), this, SIGNAL(textChanged())); nativeWidget->setWindowIcon(QIcon()); - setWidget(nativeWidget); + d->setWidget(nativeWidget); nativeWidget->setAttribute(Qt::WA_NoSystemBackground); nativeWidget->setFrameShape(QFrame::NoFrame);