use d->setWidget which notes that it's not a palette customization

This commit is contained in:
Aaron Seigo 2011-12-04 14:00:02 +01:00
parent e34c70415e
commit 3948cfb8cf
8 changed files with 8 additions and 8 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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();

View File

@ -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();
}

View File

@ -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);

View File

@ -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();

View File

@ -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);

View File

@ -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);