DiffEditor: Cosmetics

Add a bit of space around "Context Lines" label.
Remove extra spinbox frame.

Change-Id: I69533c2fa3e93473f41194bdc36ce07042df9855
Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
This commit is contained in:
hjk
2013-05-30 12:01:07 +02:00
committed by Jarek Kobus
parent 77c136646b
commit 77ae4a8cb6

View File

@@ -140,12 +140,15 @@ QWidget *DiffEditorEditable::toolBar()
m_editorWidget, SLOT(setIgnoreWhitespaces(bool))); m_editorWidget, SLOT(setIgnoreWhitespaces(bool)));
m_toolWidget->addWidget(whitespaceButton); 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); m_toolWidget->addWidget(contextLabel);
QSpinBox *contextSpinBox = new QSpinBox(m_toolWidget); QSpinBox *contextSpinBox = new QSpinBox(m_toolWidget);
contextSpinBox->setRange(-1, 100); contextSpinBox->setRange(-1, 100);
contextSpinBox->setValue(3); contextSpinBox->setValue(3);
contextSpinBox->setFrame(false);
connect(contextSpinBox, SIGNAL(valueChanged(int)), connect(contextSpinBox, SIGNAL(valueChanged(int)),
m_editorWidget, SLOT(setContextLinesNumber(int))); m_editorWidget, SLOT(setContextLinesNumber(int)));
m_toolWidget->addWidget(contextSpinBox); m_toolWidget->addWidget(contextSpinBox);