Commit 52c89f1e authored by dt's avatar dt
Browse files

Ups, forward mouse events

Somehow got lost in rebasing
parent 3ef43f56
......@@ -434,9 +434,10 @@ OutputWindow::~OutputWindow()
delete m_outputWindowContext;
}
void OutputWindow::mousePressEvent(QMouseEvent * /*e*/)
void OutputWindow::mousePressEvent(QMouseEvent * e)
{
m_mousePressed = true;
QPlainTextEdit::mousePressEvent(e);
}
......@@ -453,6 +454,7 @@ void OutputWindow::mouseReleaseEvent(QMouseEvent *e)
const QString href = anchorAt(e->pos());
if (m_formatter)
m_formatter->handleLink(href);
QPlainTextEdit::mousePressEvent(e);
}
void OutputWindow::mouseMoveEvent(QMouseEvent *e)
......@@ -465,6 +467,7 @@ void OutputWindow::mouseMoveEvent(QMouseEvent *e)
viewport()->setCursor(Qt::IBeamCursor);
else
viewport()->setCursor(Qt::PointingHandCursor);
QPlainTextEdit::mouseMoveEvent(e);
}
OutputFormatter *OutputWindow::formatter() const
......
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