forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user