Mercurial > hg > easyhg
changeset 550:c2207b729ab0
Slightly different spacing on Windows
author | Chris Cannam <chris.cannam@eecs.qmul.ac.uk> |
---|---|
date | Wed, 15 Feb 2012 15:33:05 +0000 |
parents | 06f7ae09015f |
children | 7aac208dfb5c |
files | src/mainwindow.cpp |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/mainwindow.cpp Wed Feb 15 14:34:35 2012 +0000 +++ b/src/mainwindow.cpp Wed Feb 15 15:33:05 2012 +0000 @@ -3007,8 +3007,13 @@ int sz = 32; bool spacingReqd = false; + QString spacer = ""; #ifndef Q_OS_MAC spacingReqd = true; + spacer = " "; +#ifdef Q_OS_WIN32 + spacer = " "; +#endif #endif m_workFolderToolBar = addToolBar(tr("Work")); @@ -3032,9 +3037,9 @@ m_repoToolBar = addToolBar(tr("Remote")); m_repoToolBar->setIconSize(QSize(sz, sz)); - if (spacingReqd) m_repoToolBar->addWidget(new QLabel(" ")); + m_repoToolBar->addWidget(new QLabel(spacer)); m_repoToolBar->addAction(m_openAct); - if (spacingReqd) m_repoToolBar->addWidget(new QLabel(" ")); + m_repoToolBar->addWidget(new QLabel(spacer)); m_repoToolBar->addSeparator(); m_repoToolBar->addAction(m_hgIncomingAct); m_repoToolBar->addAction(m_hgPullAct);