mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
plasma: remove redundant method call
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
4869eb7bcc
commit
dbf44ae507
1 changed files with 12 additions and 14 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue