mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
parent
3265912b28
commit
dfd8112f76
|
@ -52,7 +52,11 @@ void ScanFlag::showScanFlag()
|
|||
|
||||
QPoint currentPos = QCursor::pos();
|
||||
|
||||
QRect desktop = QGuiApplication::primaryScreen()->geometry();
|
||||
auto screen = QGuiApplication::screenAt( currentPos );
|
||||
if ( !screen )
|
||||
return;
|
||||
|
||||
QRect desktop = screen->geometry();
|
||||
|
||||
QSize windowSize = geometry().size();
|
||||
|
||||
|
|
|
@ -522,7 +522,11 @@ void ScanPopup::engagePopup( bool forcePopup, bool giveFocus )
|
|||
|
||||
QPoint currentPos = QCursor::pos();
|
||||
|
||||
QRect desktop = QGuiApplication::primaryScreen()->geometry();
|
||||
auto screen = QGuiApplication::screenAt( currentPos );
|
||||
if ( !screen )
|
||||
return;
|
||||
|
||||
QRect desktop = screen->geometry();
|
||||
|
||||
QSize windowSize = geometry().size();
|
||||
|
||||
|
|
Loading…
Reference in a new issue