Skip to content

Commit

Permalink
Use QgsProcessingHistoryDialog for Processing history dialog
Browse files Browse the repository at this point in the history
And remove old class
  • Loading branch information
nyalldawson committed Apr 24, 2023
1 parent 45d8918 commit a4d6fd3
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 398 deletions.
9 changes: 5 additions & 4 deletions python/plugins/processing/ProcessingPlugin.py
Expand Up @@ -38,15 +38,15 @@
QgsSettings)
from qgis.gui import (QgsGui,
QgsOptionsWidgetFactory,
QgsCustomDropHandler)
QgsCustomDropHandler,
QgsProcessingHistoryDialog)
from qgis.PyQt.QtCore import QObject, Qt, QItemSelectionModel, QCoreApplication, QDir, QFileInfo, pyqtSlot
from qgis.PyQt.QtWidgets import QWidget, QMenu, QAction
from qgis.PyQt.QtGui import QIcon, QKeySequence
from qgis.utils import iface

from processing.core.Processing import Processing
from processing.gui.ProcessingToolbox import ProcessingToolbox
from processing.gui.HistoryDialog import HistoryDialog
from processing.gui.ConfigDialog import ConfigOptionsPage
from processing.gui.ResultsDock import ResultsDock
from processing.gui.MessageDialog import MessageDialog
Expand Down Expand Up @@ -499,8 +499,9 @@ def openResults(self):
self.resultsDock.show()

def openHistory(self):
dlg = HistoryDialog()
dlg.exec_()
dlg = QgsProcessingHistoryDialog(self.iface.mainWindow())
dlg.setAttribute(Qt.WA_DeleteOnClose)
dlg.show()

def tr(self, message, disambiguation=None, n=-1):
return QCoreApplication.translate('ProcessingPlugin', message, disambiguation=disambiguation, n=n)
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/gui/BatchPanel.py
Expand Up @@ -38,7 +38,7 @@
QAction
)

# adding to this list? also update the HistoryDialog.py executeAlgorithm imports!!
# adding to this list? also update the QgsProcessingHistoryProvider executeAlgorithm imports!!

from qgis.PyQt.QtCore import (
QTime, # NOQA - must be here for saved file evaluation
Expand Down
293 changes: 0 additions & 293 deletions python/plugins/processing/gui/HistoryDialog.py

This file was deleted.

0 comments on commit a4d6fd3

Please sign in to comment.