use d->setWidget which notes that it's not a palette customization
This commit is contained in:
parent
e34c70415e
commit
3948cfb8cf
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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();
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user