mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
fix: remove unused method
This commit is contained in:
parent
a45c95ebde
commit
f274e658ed
|
@ -851,19 +851,10 @@ void ScanPopup::enterEvent( QEvent * event )
|
|||
}
|
||||
}
|
||||
|
||||
void ScanPopup::requestWindowFocus()
|
||||
{
|
||||
// One of the rare, actually working workarounds for requesting a user keyboard focus on X11,
|
||||
// works for Qt::Popup windows, exactly like our Scan Popup (in unpinned state).
|
||||
// Modern window managers actively resist to automatically focus pop-up windows.
|
||||
}
|
||||
|
||||
void ScanPopup::showEvent( QShowEvent * ev )
|
||||
{
|
||||
QMainWindow::showEvent( ev );
|
||||
|
||||
QTimer::singleShot( 100, this, &ScanPopup::requestWindowFocus );
|
||||
|
||||
if ( groups.size() <= 1 ) // Only the default group? Hide then.
|
||||
ui.groupList->hide();
|
||||
|
||||
|
|
|
@ -88,7 +88,6 @@ signals:
|
|||
#endif
|
||||
|
||||
public slots:
|
||||
void requestWindowFocus();
|
||||
|
||||
void inspectElementWhenPinned( QWebEnginePage * page );
|
||||
/// Translates the word from the clipboard, showing the window etc.
|
||||
|
|
Loading…
Reference in a new issue