mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 10:52:51 +00:00
plasma: use different spacing when form factor is panel for lockout applet
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
54cd004fc5
commit
2f8e2239ec
1 changed files with 4 additions and 0 deletions
|
@ -217,16 +217,20 @@ void LockoutApplet::updateOrientation()
|
|||
switch (formFactor()) {
|
||||
case Plasma::FormFactor::Horizontal: {
|
||||
m_layout->setOrientation(Qt::Horizontal);
|
||||
m_layout->setSpacing(0);
|
||||
return;
|
||||
}
|
||||
case Plasma::FormFactor::Vertical: {
|
||||
m_layout->setOrientation(Qt::Vertical);
|
||||
m_layout->setSpacing(0);
|
||||
return;
|
||||
}
|
||||
default: {
|
||||
m_layout->setSpacing(4);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
const QSizeF appletsize = size();
|
||||
if (appletsize.width() >= appletsize.height()) {
|
||||
m_layout->setOrientation(Qt::Horizontal);
|
||||
|
|
Loading…
Add table
Reference in a new issue