mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 00:58:32 -04:00
Check that double click is done using the left button before toggling full-screen mode
This commit is contained in:
parent
d20958c14f
commit
fce1f163aa
@ -1078,8 +1078,10 @@ void MainWindowViewer::keyPressEvent(QKeyEvent *event)
|
||||
|
||||
void MainWindowViewer::mouseDoubleClickEvent(QMouseEvent *event)
|
||||
{
|
||||
toggleFullScreen();
|
||||
event->accept();
|
||||
if (event->button() == Qt::LeftButton) {
|
||||
toggleFullScreen();
|
||||
event->accept();
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindowViewer::toggleFullScreen()
|
||||
|
Loading…
x
Reference in New Issue
Block a user