forked from qt-creator/qt-creator
Code style selector improvements
Change layout in code style selector. Make it possible to see the values of built-in code style without a need to copy it. Built-in code style can be also modified after being copied inside code style editor. Task-number: QTCREATORBUG-6341 Change-Id: Ifcbf807d5730ccf9026e86572710d0cc0ccf9f1a Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com> Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com>
This commit is contained in:
committed by
Christian Kamm
parent
69e02f4fb8
commit
c9ea9ad58b
@@ -69,6 +69,9 @@ CodeStyleEditor::CodeStyleEditor(ICodeStylePreferencesFactory *factory,
|
||||
tr("Edit preview contents to see how the current settings "
|
||||
"are applied to custom code snippets. Changes in the preview "
|
||||
"do not affect the current settings."), this);
|
||||
QFont font = label->font();
|
||||
font.setItalic(true);
|
||||
label->setFont(font);
|
||||
label->setWordWrap(true);
|
||||
m_layout->addWidget(selector);
|
||||
m_layout->addWidget(m_preview);
|
||||
|
||||
Reference in New Issue
Block a user