Added option to turn off link info tooltips.

This commit is contained in:
23rd 2018-08-25 20:49:50 +03:00
parent 5253ab3f85
commit f8c42918a6
3 changed files with 6 additions and 0 deletions

View file

@ -109,6 +109,7 @@ public:
/// Links /// Links
BoolSetting linksDoubleClickOnly = {"/links/doubleClickToOpen", false}; BoolSetting linksDoubleClickOnly = {"/links/doubleClickToOpen", false};
BoolSetting enableLinkInfoTooltip = {"/links/linkInfoTooltip", false};
BoolSetting enableLowercaseLink = {"/links/linkLowercase", true}; BoolSetting enableLowercaseLink = {"/links/linkLowercase", true};
/// Ingored Users /// Ingored Users

View file

@ -864,6 +864,8 @@ void ChannelView::mouseMoveEvent(QMouseEvent *event)
if (tooltip.isEmpty()) { if (tooltip.isEmpty()) {
tooltipWidget->hide(); tooltipWidget->hide();
} else if (hoverLayoutElement->getLink().isValid() && !getSettings()->enableLinkInfoTooltip) {
tooltipWidget->hide();
} else { } else {
tooltipWidget->moveTo(this, event->globalPos()); tooltipWidget->moveTo(this, event->globalPos());
tooltipWidget->setWordWrap(hoverLayoutElement->getLink().isValid()); tooltipWidget->setWordWrap(hoverLayoutElement->getLink().isValid());

View file

@ -50,6 +50,9 @@ FeelPage::FeelPage()
form->addRow("Links:", form->addRow("Links:",
this->createCheckBox("Open links only on double click", this->createCheckBox("Open links only on double click",
getSettings()->linksDoubleClickOnly)); getSettings()->linksDoubleClickOnly));
form->addRow("",
this->createCheckBox("Show link info in tooltips",
getSettings()->enableLinkInfoTooltip));
} }
layout->addSpacing(16); layout->addSpacing(16);