From 77ae4a8cb62199c458707feffd683773235cd6a0 Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 30 May 2013 12:01:07 +0200 Subject: [PATCH] DiffEditor: Cosmetics Add a bit of space around "Context Lines" label. Remove extra spinbox frame. Change-Id: I69533c2fa3e93473f41194bdc36ce07042df9855 Reviewed-by: Jarek Kobus --- src/plugins/diffeditor/diffeditoreditable.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/diffeditor/diffeditoreditable.cpp b/src/plugins/diffeditor/diffeditoreditable.cpp index 50f1f0f2e76..2c348e96b36 100644 --- a/src/plugins/diffeditor/diffeditoreditable.cpp +++ b/src/plugins/diffeditor/diffeditoreditable.cpp @@ -140,12 +140,15 @@ QWidget *DiffEditorEditable::toolBar() m_editorWidget, SLOT(setIgnoreWhitespaces(bool))); m_toolWidget->addWidget(whitespaceButton); - QLabel *contextLabel = new QLabel(tr("Context lines:"), m_toolWidget); + QLabel *contextLabel = new QLabel(m_toolWidget); + contextLabel->setText(tr("Context Lines:")); + contextLabel->setMargin(6); m_toolWidget->addWidget(contextLabel); QSpinBox *contextSpinBox = new QSpinBox(m_toolWidget); contextSpinBox->setRange(-1, 100); contextSpinBox->setValue(3); + contextSpinBox->setFrame(false); connect(contextSpinBox, SIGNAL(valueChanged(int)), m_editorWidget, SLOT(setContextLinesNumber(int))); m_toolWidget->addWidget(contextSpinBox);