Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use QApplication.instance() instead of qApp (Qt6 compatibility) #57

Merged
merged 1 commit into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions orangecontrib/associate/widgets/owassociate.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from AnyQt.QtCore import Qt, QSortFilterProxyModel
from AnyQt.QtGui import QStandardItem, QStandardItemModel
from AnyQt.QtWidgets import QTableView, qApp, QGridLayout, QLabel
from AnyQt.QtWidgets import QTableView, QGridLayout, QLabel, QApplication

from Orange.data import Table, ContinuousVariable, StringVariable, Domain
from Orange.widgets import widget, gui, settings
Expand Down Expand Up @@ -415,7 +415,7 @@ def find_rules(self):
if not self._is_running or nRules >= self.maxRules:
break

qApp.processEvents()
QApplication.instance().processEvents()

if not self._is_running or nRules >= self.maxRules:
break
Expand Down
4 changes: 2 additions & 2 deletions orangecontrib/associate/widgets/owitemsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from scipy.sparse import issparse

from AnyQt.QtCore import Qt, QItemSelection, QItemSelectionModel
from AnyQt.QtWidgets import QTreeWidget, QTreeWidgetItem, qApp
from AnyQt.QtWidgets import QTreeWidget, QTreeWidgetItem, QApplication

from Orange.data import Table
from Orange.widgets import widget, gui, settings
Expand Down Expand Up @@ -297,7 +297,7 @@ def __init__(self, item):
if not self._is_running or nItemsets >= self.maxItemsets:
break

qApp.processEvents()
QApplication.instance().processEvents()

if not filterSearch:
self.filter_change()
Expand Down
Loading