Skip to content

Commit 30024ac

Browse files
committed
Fix setActiveWindow deprecation warning
1 parent b37747d commit 30024ac

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/mainwindow.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3918,10 +3918,7 @@ bool MainWindow::eventFilter(QObject *object, QEvent *event)
39183918
}
39193919
case QEvent::ActivationChange: {
39203920
if (m_editorSettingsWidget->isHidden()) {
3921-
QApplication::setActiveWindow(
3922-
this); // TODO: The docs say this function is deprecated but it's the only one
3923-
// that works in returning the user input from m_editorSettingsWidget
3924-
// Qt::Popup
3921+
QWidget::activateWindow();
39253922
m_textEdit->setFocus();
39263923
}
39273924
break;

0 commit comments

Comments
 (0)