Commit 82d6dd6f authored by Lorenz Haas's avatar Lorenz Haas Committed by David Schulz
Browse files

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: default avatarDavid Schulz <david.schulz@digia.com>
parent c49fe835
......@@ -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);
......
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