mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -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)
|
void MainWindowViewer::mouseDoubleClickEvent(QMouseEvent *event)
|
||||||
{
|
{
|
||||||
toggleFullScreen();
|
if (event->button() == Qt::LeftButton) {
|
||||||
event->accept();
|
toggleFullScreen();
|
||||||
|
event->accept();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindowViewer::toggleFullScreen()
|
void MainWindowViewer::toggleFullScreen()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user