Make plugins path selectable and bold (#1422)

This commit is contained in:
Itay Cohen 2019-04-04 22:30:27 +03:00 committed by GitHub
parent b701d5a9ad
commit 158ed7a656
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,8 +21,9 @@ PluginsOptionsWidget::PluginsOptionsWidget(PreferencesDialog *dialog)
setLayout(layout); setLayout(layout);
auto dirLabel = new QLabel(this); auto dirLabel = new QLabel(this);
dirLabel->setTextInteractionFlags(Qt::TextSelectableByMouse);
layout->addWidget(dirLabel); layout->addWidget(dirLabel);
dirLabel->setText(tr("Plugins are loaded from %1").arg(Plugins()->getPluginsDirectory())); dirLabel->setText(tr("Plugins are loaded from <b>%1</b>").arg(Plugins()->getPluginsDirectory()));
auto treeWidget = new QTreeWidget(this); auto treeWidget = new QTreeWidget(this);
layout->addWidget(treeWidget); layout->addWidget(treeWidget);
@ -53,4 +54,4 @@ PluginsOptionsWidget::PluginsOptionsWidget(PreferencesDialog *dialog)
}); });
} }
PluginsOptionsWidget::~PluginsOptionsWidget() {} PluginsOptionsWidget::~PluginsOptionsWidget() {}