mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-29 15:55:04 +00:00
parent
8266cd074f
commit
63ae6e665e
@ -12,6 +12,7 @@
|
||||
#include <QPushButton>
|
||||
#include <QTreeWidget>
|
||||
#include <QVBoxLayout>
|
||||
#include <QUrl>
|
||||
|
||||
|
||||
PluginsOptionsWidget::PluginsOptionsWidget(PreferencesDialog *dialog)
|
||||
@ -21,9 +22,12 @@ PluginsOptionsWidget::PluginsOptionsWidget(PreferencesDialog *dialog)
|
||||
setLayout(layout);
|
||||
|
||||
auto dirLabel = new QLabel(this);
|
||||
dirLabel->setTextInteractionFlags(Qt::TextSelectableByMouse);
|
||||
dirLabel->setTextInteractionFlags(Qt::TextBrowserInteraction);
|
||||
dirLabel->setOpenExternalLinks(true);
|
||||
layout->addWidget(dirLabel);
|
||||
dirLabel->setText(tr("Plugins are loaded from <b>%1</b>").arg(Plugins()->getUserPluginsDirectory()));
|
||||
auto pluginPath = Plugins()->getUserPluginsDirectory();
|
||||
dirLabel->setText(tr("Plugins are loaded from <a href=\"%1\">%2</a>")
|
||||
.arg(QUrl::fromLocalFile(pluginPath).toString(), pluginPath.toHtmlEscaped()));
|
||||
|
||||
auto treeWidget = new QTreeWidget(this);
|
||||
layout->addWidget(treeWidget);
|
||||
|
Loading…
Reference in New Issue
Block a user