Settings: Aling the non-accounts button on the right

This commit is contained in:
Olivier Goffart 2015-07-03 11:04:03 +02:00
parent 0b8163fae1
commit 76903fb55a

View file

@ -69,9 +69,13 @@ SettingsDialog::SettingsDialog(ownCloudGui *gui, QWidget *parent) :
addAction(closeWindowAction);
setObjectName("Settings"); // required as group for saveGeometry call
setWindowTitle(Theme::instance()->appNameGUI());
// Add a spacer so config buttonns are right aligned and account buttons will be left aligned
auto spacer = new QWidget();
spacer->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
toolBar->addWidget(spacer);
QIcon protocolIcon(QLatin1String(":/client/resources/activity.png"));
_protocolAction = toolBar->addAction(protocolIcon, tr("Activity"));
_protocolAction->setCheckable(true);