plasma: remove redundant method call

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-05-24 06:45:06 +03:00
parent 4869eb7bcc
commit dbf44ae507

View file

@ -241,9 +241,9 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
// kDebug() << "we are expanding the popupapplet";
// we only switch to expanded if we aren't horiz/vert constrained and
// this applet has an icon.
// otherwise, we leave it up to the applet itself to figure it out
// only switch to expanded if we aren't horiz/vert constrained and
// this applet has an icon. otherwise, we leave it up to the applet
// itself to figure it out
if (icon) {
icon->hide();
}
@ -255,7 +255,7 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
Dialog *dialog = dialogPtr.data();
if (dialog) {
if (dialog->layout() && qWidget) {
//we don't want to delete Widget inside the dialog layout
// don't want to delete Widget inside the dialog layout
dialog->layout()->removeWidget(qWidget);
}
@ -309,8 +309,6 @@ void PopupAppletPrivate::popupConstraintsEvent(Plasma::Constraints constraints)
minimum.setWidth(0);
}
qreal left, top, right, bottom;
q->getContentsMargins(&left, &top, &right, &bottom);
QSizeF oldSize(q->size());
// size not saved/invalid size saved
@ -421,8 +419,8 @@ QSizeF PopupApplet::sizeHint(Qt::SizeHint which, const QSizeF & constraint) cons
}
switch (formFactor()) {
case Vertical:
case Horizontal: {
case Plasma::Vertical:
case Plasma::Horizontal: {
const int size = IconSize(KIconLoader::Panel);
return QSizeF(size, size);
}