Skip to content

Commit

Permalink
[processing] Some History dialog UX fixes:
Browse files Browse the repository at this point in the history
- fix tiny folder icon on hidpi
- remember window geometry
  • Loading branch information
nyalldawson committed Oct 1, 2018
1 parent d50ccff commit 644ea71
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions python/plugins/processing/gui/HistoryDialog.py
Expand Up @@ -28,6 +28,7 @@
import os
import warnings

from qgis.gui import QgsGui
from qgis.PyQt import uic
from qgis.PyQt.QtCore import Qt, QCoreApplication
from qgis.PyQt.QtWidgets import QAction, QPushButton, QDialogButtonBox, QStyle, QMessageBox, QFileDialog, QMenu, QTreeWidgetItem
Expand All @@ -49,11 +50,10 @@ def __init__(self):
super(HistoryDialog, self).__init__(None)
self.setupUi(self)

self.groupIcon = QIcon()
self.groupIcon.addPixmap(self.style().standardPixmap(
QStyle.SP_DirClosedIcon), QIcon.Normal, QIcon.Off)
self.groupIcon.addPixmap(self.style().standardPixmap(
QStyle.SP_DirOpenIcon), QIcon.Normal, QIcon.On)
QgsGui.instance().enableAutoGeometryRestore(self)

self.groupIcon = self.style().standardIcon(
QStyle.SP_DirClosedIcon)

self.keyIcon = self.style().standardIcon(QStyle.SP_FileIcon)

Expand Down

0 comments on commit 644ea71

Please sign in to comment.