[Pkg-owncloud-commits] [owncloud-client] 240/498: Settings: Aling the non-accounts button on the right

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Aug 11 14:48:54 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 76903fb55ae9fa0c2e50e756b8d4319f40ae6e5b
Author: Olivier Goffart <ogoffart at woboq.com>
Date:   Fri Jul 3 11:04:03 2015 +0200

    Settings: Aling the non-accounts button on the right
---
 src/gui/settingsdialog.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/gui/settingsdialog.cpp b/src/gui/settingsdialog.cpp
index 768995e..d79b57a 100644
--- a/src/gui/settingsdialog.cpp
+++ b/src/gui/settingsdialog.cpp
@@ -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);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list