forked from qt-creator/qt-creator
ClangFormat: Fix warning readability message on dark theme
Fixes: QTCREATORBUG-30339 Change-Id: I57291907656b379468a066a09e767b886f17d7a0 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -21,6 +21,7 @@
|
|||||||
#include <texteditor/texteditorsettings.h>
|
#include <texteditor/texteditorsettings.h>
|
||||||
|
|
||||||
#include <utils/guard.h>
|
#include <utils/guard.h>
|
||||||
|
#include <utils/infolabel.h>
|
||||||
#include <utils/layoutbuilder.h>
|
#include <utils/layoutbuilder.h>
|
||||||
|
|
||||||
#include <QCheckBox>
|
#include <QCheckBox>
|
||||||
@@ -68,7 +69,7 @@ private:
|
|||||||
QCheckBox *m_formatOnSave;
|
QCheckBox *m_formatOnSave;
|
||||||
QCheckBox *m_useCustomSettingsCheckBox;
|
QCheckBox *m_useCustomSettingsCheckBox;
|
||||||
QCheckBox *m_useGlobalSettings;
|
QCheckBox *m_useGlobalSettings;
|
||||||
QLabel *m_currentProjectLabel;
|
InfoLabel *m_currentProjectLabel;
|
||||||
};
|
};
|
||||||
|
|
||||||
ClangFormatGlobalConfigWidget::ClangFormatGlobalConfigWidget(ICodeStylePreferences *codeStyle,
|
ClangFormatGlobalConfigWidget::ClangFormatGlobalConfigWidget(ICodeStylePreferences *codeStyle,
|
||||||
@@ -95,10 +96,10 @@ ClangFormatGlobalConfigWidget::ClangFormatGlobalConfigWidget(ICodeStylePreferenc
|
|||||||
m_useGlobalSettings->hide();
|
m_useGlobalSettings->hide();
|
||||||
m_useCustomSettings = ClangFormatSettings::instance().useCustomSettings();
|
m_useCustomSettings = ClangFormatSettings::instance().useCustomSettings();
|
||||||
|
|
||||||
m_currentProjectLabel = new QLabel(
|
m_currentProjectLabel = new Utils::InfoLabel(
|
||||||
Tr::tr("Please note that the current project includes a .clang-format file, which will be "
|
Tr::tr("Please note that the current project includes a .clang-format file, which will be "
|
||||||
"used for code indenting and formatting."));
|
"used for code indenting and formatting."),
|
||||||
m_currentProjectLabel->setStyleSheet("QLabel { color : red; }");
|
Utils::InfoLabel::Warning);
|
||||||
m_currentProjectLabel->setWordWrap(true);
|
m_currentProjectLabel->setWordWrap(true);
|
||||||
|
|
||||||
using namespace Layouting;
|
using namespace Layouting;
|
||||||
|
Reference in New Issue
Block a user