mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 11: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);
|
//QPlainTextEdit::keyPressEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DisassemblyTextEdit::mousePressEvent(QMouseEvent *event)
|
||||||
|
{
|
||||||
|
QPlainTextEdit::mousePressEvent(event);
|
||||||
|
|
||||||
|
if (event->button() == Qt::RightButton)
|
||||||
|
{
|
||||||
|
setTextCursor(cursorForPosition(event->pos()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void DisassemblyWidget::seekPrev()
|
void DisassemblyWidget::seekPrev()
|
||||||
{
|
{
|
||||||
Core()->seekPrev();
|
Core()->seekPrev();
|
||||||
|
@ -93,6 +93,7 @@ protected:
|
|||||||
bool viewportEvent(QEvent *event) override;
|
bool viewportEvent(QEvent *event) override;
|
||||||
void scrollContentsBy(int dx, int dy) override;
|
void scrollContentsBy(int dx, int dy) override;
|
||||||
void keyPressEvent(QKeyEvent *event) override;
|
void keyPressEvent(QKeyEvent *event) override;
|
||||||
|
void mousePressEvent(QMouseEvent *event) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool lockScroll;
|
bool lockScroll;
|
||||||
|
Loading…
Reference in New Issue
Block a user