Commit 0d0dcc00 authored by Tomaz  Canabrava's avatar Tomaz Canabrava
Browse files

Add TODO's

parent c583f5d2
...@@ -2508,6 +2508,7 @@ void TerminalDisplay::mouseReleaseEvent(QMouseEvent* ev) ...@@ -2508,6 +2508,7 @@ void TerminalDisplay::mouseReleaseEvent(QMouseEvent* ev)
2); 2);
} }
// TODO: Move this code to hot spots too.
if (!_screenWindow->screen()->hasSelection() && (_openLinksByDirectClick || ((ev->modifiers() & Qt::ControlModifier) != 0u))) { if (!_screenWindow->screen()->hasSelection() && (_openLinksByDirectClick || ((ev->modifiers() & Qt::ControlModifier) != 0u))) {
auto spot = _filterChain->hotSpotAt(charLine, charColumn); auto spot = _filterChain->hotSpotAt(charLine, charColumn);
if ((spot != nullptr) && (spot->type() == HotSpot::Link || spot->type() == HotSpot::EMailAddress || spot->type() == HotSpot::EscapedUrl)) { if ((spot != nullptr) && (spot->type() == HotSpot::Link || spot->type() == HotSpot::EMailAddress || spot->type() == HotSpot::EscapedUrl)) {
...@@ -3488,6 +3489,7 @@ void TerminalDisplay::scrollScreenWindow(enum ScreenWindow::RelativeScrollMode m ...@@ -3488,6 +3489,7 @@ void TerminalDisplay::scrollScreenWindow(enum ScreenWindow::RelativeScrollMode m
void TerminalDisplay::keyPressEvent(QKeyEvent* event) void TerminalDisplay::keyPressEvent(QKeyEvent* event)
{ {
// TODO: Move this code to HotSpot too.
if ((_urlHintsModifiers != 0u) && event->modifiers() == _urlHintsModifiers) { if ((_urlHintsModifiers != 0u) && event->modifiers() == _urlHintsModifiers) {
QList<QSharedPointer<HotSpot>> hotspots = _filterChain->filterBy(HotSpot::Link); QList<QSharedPointer<HotSpot>> hotspots = _filterChain->filterBy(HotSpot::Link);
int nHotSpots = hotspots.count(); int nHotSpots = hotspots.count();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment