mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Added option to turn off link info tooltips.
This commit is contained in:
parent
5253ab3f85
commit
f8c42918a6
|
@ -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
|
||||||
|
|
|
@ -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());
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue