diff options
author | Jarek Kobus <jkobus@trolltech.com> | 2011-10-11 10:33:32 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@nokia.com> | 2011-10-12 11:33:37 +0200 |
commit | 79f7703a0ba7e3ac27037f50c2b639af99bdcbde (patch) | |
tree | 6b488c75a4b94ed2b02244a5c7d579fd3641f536 /src/plugins/texteditor/codestyleeditor.cpp | |
parent | a5211130f39b0e5bec7ab512c9ff23a23fc71e3a (diff) | |
download | qt-creator-79f7703a0ba7e3ac27037f50c2b639af99bdcbde.tar.gz |
Add a label explaining the goal of editable preview
Change-Id: I6e3455f5767862150f95beac1ea4b7655619ca0c
Reviewed-on: http://codereview.qt-project.org/6363
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com>
Diffstat (limited to 'src/plugins/texteditor/codestyleeditor.cpp')
-rw-r--r-- | src/plugins/texteditor/codestyleeditor.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/texteditor/codestyleeditor.cpp b/src/plugins/texteditor/codestyleeditor.cpp index af96c436fb..bdad029b47 100644 --- a/src/plugins/texteditor/codestyleeditor.cpp +++ b/src/plugins/texteditor/codestyleeditor.cpp @@ -43,6 +43,7 @@ #include "snippets/isnippetprovider.h" #include <QtGui/QVBoxLayout> #include <QtGui/QTextBlock> +#include <QtGui/QLabel> using namespace TextEditor; @@ -64,8 +65,14 @@ CodeStyleEditor::CodeStyleEditor(ICodeStylePreferencesFactory *factory, ISnippetProvider *provider = factory->snippetProvider(); if (provider) provider->decorateEditor(m_preview); + QLabel *label = new QLabel( + 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); + label->setWordWrap(true); m_layout->addWidget(selector); m_layout->addWidget(m_preview); + m_layout->addWidget(label); connect(codeStyle, SIGNAL(currentTabSettingsChanged(TextEditor::TabSettings)), this, SLOT(updatePreview())); connect(codeStyle, SIGNAL(currentValueChanged(QVariant)), |