mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Check that double click is done using the left button before toggling full-screen mode
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user