mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-21 12:26:11 +00:00
Seek on right click in DisassemblyWidget
This commit is contained in:
parent
61549f401e
commit
de010d4c6c
@ -535,6 +535,16 @@ void DisassemblyTextEdit::keyPressEvent(QKeyEvent */*event*/)
|
||||
//QPlainTextEdit::keyPressEvent(event);
|
||||
}
|
||||
|
||||
void DisassemblyTextEdit::mousePressEvent(QMouseEvent *event)
|
||||
{
|
||||
QPlainTextEdit::mousePressEvent(event);
|
||||
|
||||
if (event->button() == Qt::RightButton)
|
||||
{
|
||||
setTextCursor(cursorForPosition(event->pos()));
|
||||
}
|
||||
}
|
||||
|
||||
void DisassemblyWidget::seekPrev()
|
||||
{
|
||||
Core()->seekPrev();
|
||||
|
@ -93,6 +93,7 @@ protected:
|
||||
bool viewportEvent(QEvent *event) override;
|
||||
void scrollContentsBy(int dx, int dy) override;
|
||||
void keyPressEvent(QKeyEvent *event) override;
|
||||
void mousePressEvent(QMouseEvent *event) override;
|
||||
|
||||
private:
|
||||
bool lockScroll;
|
||||
|
Loading…
Reference in New Issue
Block a user