Commit 77ae4a8c authored by hjk's avatar hjk Committed by Jarek Kobus
Browse files

DiffEditor: Cosmetics



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

Change-Id: I69533c2fa3e93473f41194bdc36ce07042df9855
Reviewed-by: default avatarJarek Kobus <jaroslaw.kobus@digia.com>
parent 77c13664
...@@ -140,12 +140,15 @@ QWidget *DiffEditorEditable::toolBar() ...@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment