diff --git a/context/togglelist.cpp b/context/togglelist.cpp index 32cebb492..f4ed2438d 100644 --- a/context/togglelist.cpp +++ b/context/togglelist.cpp @@ -27,6 +27,7 @@ #include "settings.h" #include "basicitemdelegate.h" #include "flickcharm.h" +#include "utils.h" ToggleList::ToggleList(QWidget *p) : QWidget(p) @@ -54,6 +55,9 @@ ToggleList::ToggleList(QWidget *p) selected->setItemDelegate(new BasicItemDelegate(selected)); FlickCharm::self()->activateOn(available); FlickCharm::self()->activateOn(selected); + QSize sz=Utils::touchFriendly() ? removeButton->sizeHint() : QSize(0, 0); + spacerA->changeSize(sz.width(), sz.height()); + spacerB->changeSize(sz.width(), sz.height()); } void ToggleList::moveUp() diff --git a/context/togglelist.ui b/context/togglelist.ui index 709ca77c2..3719e8431 100644 --- a/context/togglelist.ui +++ b/context/togglelist.ui @@ -25,11 +25,8 @@ - + - - true - true @@ -48,11 +45,8 @@ - + - - true - false @@ -86,20 +80,52 @@ + + + Qt::Vertical + + + QSizePolicy::Fixed + + + + 20 + 20 + + + + + + + + Qt::Vertical + + + QSizePolicy::Fixed + + + + 20 + 20 + + + + + true - + true - + Qt::Vertical @@ -112,7 +138,7 @@ - + Qt::Vertical