forked from qt-creator/qt-creator
GUI enhancement for line number widget in editors tool bar
The L of "Line ..." and the right frame of the previous combo box are glued together without any spacing which looks not good. Added half spacing to save space and make the label good looking. Change-Id: Id930171be7a2f7885ab633eec8082057bc726227 Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
committed by
David Schulz
parent
c49fe8350d
commit
82d6dd6f07
@@ -6250,6 +6250,8 @@ BaseTextEditor::BaseTextEditor(BaseTextEditorWidget *editor)
|
||||
aggregate->add(editor);
|
||||
|
||||
m_cursorPositionLabel = new Utils::LineColumnLabel;
|
||||
const int spacing = editor->style()->pixelMetric(QStyle::PM_LayoutHorizontalSpacing) / 2;
|
||||
m_cursorPositionLabel->setContentsMargins(spacing, 0, spacing, 0);
|
||||
|
||||
m_stretchWidget = new QWidget;
|
||||
m_stretchWidget->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
|
||||
|
||||
Reference in New Issue
Block a user