remove :frameSvgItem()
This commit is contained in:
parent
beac07c97d
commit
f412d1a9d0
@ -534,6 +534,12 @@ void Dialog::setType(WindowType type)
|
||||
setFlags(Qt::FramelessWindowHint|flags());
|
||||
}
|
||||
|
||||
if (type == Tooltip) {
|
||||
d->frameSvgItem->setImagePath("widgets/tooltip");
|
||||
} else {
|
||||
d->frameSvgItem->setImagePath("dialogs/background");
|
||||
}
|
||||
|
||||
if (type == Dock) {
|
||||
KWindowSystem::setOnAllDesktops(winId(), true);
|
||||
} else {
|
||||
@ -548,11 +554,6 @@ Dialog::WindowType Dialog::type() const
|
||||
return d->type;
|
||||
}
|
||||
|
||||
Plasma::FrameSvgItem *Dialog::frameSvgItem()
|
||||
{
|
||||
return d->frameSvgItem;
|
||||
}
|
||||
|
||||
void Dialog::focusInEvent(QFocusEvent *ev)
|
||||
{
|
||||
QQuickWindow::focusInEvent(ev);
|
||||
|
@ -176,8 +176,6 @@ protected:
|
||||
void hideEvent(QHideEvent *event);
|
||||
bool event(QEvent *event);
|
||||
|
||||
Plasma::FrameSvgItem *frameSvgItem();
|
||||
|
||||
virtual void classBegin();
|
||||
virtual void componentComplete();
|
||||
|
||||
|
@ -39,7 +39,6 @@ ToolTipDialog::ToolTipDialog(QQuickItem *parent)
|
||||
setFlags(Qt::ToolTip);
|
||||
setLocation(Plasma::Types::Floating);
|
||||
setDirection(Plasma::Types::Up);
|
||||
frameSvgItem()->setImagePath("widgets/tooltip");
|
||||
|
||||
m_animation = new QPropertyAnimation(this);
|
||||
connect(m_animation, SIGNAL(valueChanged(QVariant)),
|
||||
|
Loading…
Reference in New Issue
Block a user