TextEditor: Make "Annotation Settings" link smaller

...in annotation tooltips.

Change-Id: I67b73773544cfb86a3d11228cc349cf10f024e7e
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Nikolai Kosjar
2018-10-09 15:10:44 +02:00
parent 4801348a31
commit eb01565c99

View File

@@ -142,7 +142,8 @@ bool DisplaySettings::equals(const DisplaySettings &ds) const
QLabel *DisplaySettings::createAnnotationSettingsLink() QLabel *DisplaySettings::createAnnotationSettingsLink()
{ {
auto label = new QLabel("<i><a href>Annotation Settings</a></i>", Core::ICore::mainWindow()); auto label = new QLabel("<small><i><a href>Annotation Settings</a></i></small>",
Core::ICore::mainWindow());
QObject::connect(label, &QLabel::linkActivated, []() { QObject::connect(label, &QLabel::linkActivated, []() {
Utils::ToolTip::hideImmediately(); Utils::ToolTip::hideImmediately();
Core::ICore::showOptionsDialog(Constants::TEXT_EDITOR_DISPLAY_SETTINGS); Core::ICore::showOptionsDialog(Constants::TEXT_EDITOR_DISPLAY_SETTINGS);