Linux-specific: Hide scan flag window when popup window is shown (by Ctrl+C+C)

This commit is contained in:
Abs62 2017-06-06 18:00:48 +03:00
parent 5890a55c4d
commit 0999c86038
2 changed files with 10 additions and 1 deletions

View file

@ -272,11 +272,14 @@ ScanPopup::ScanPopup( QWidget * parent,
#endif
#ifdef HAVE_X11
scanFlag = new ScanFlag( 0 );
scanFlag = new ScanFlag( this );
connect( this, SIGNAL( showScanFlag( bool ) ),
scanFlag, SLOT( showScanFlag() ) );
connect( this, SIGNAL( hideScanFlag() ),
scanFlag, SLOT( hideWindow() ) );
connect( scanFlag, SIGNAL( showScanPopup() ),
this, SLOT( showEngagePopup() ) );
#endif
@ -357,6 +360,10 @@ void ScanPopup::translateWord( QString const & word )
altModePollingTimer.stop();
altModeExpirationTimer.stop();
#ifdef HAVE_X11
emit hideScanFlag();
#endif
inputWord = str;
engagePopup( false,
#ifdef Q_OS_WIN

View file

@ -74,7 +74,9 @@ signals:
void sendWordToFavorites( QString const & word, unsigned groupId );
#ifdef HAVE_X11
/// Interaction with scan flag window
void showScanFlag( bool forcePopup );
void hideScanFlag();
#endif
#ifdef Q_OS_WIN32