Skip to content

Commit

Permalink
[processing] more fixes to GdalAlgorithm dialog (followup 47d46bb)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Feb 10, 2017
1 parent 40dfdd7 commit 5c8c53c
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions python/plugins/processing/algs/gdal/GdalAlgorithmDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,18 @@

__revision__ = '$Format:%H$'

from qgis.PyQt.QtWidgets import QWidget, QVBoxLayout, QPushButton, QLabel, QPlainTextEdit, QLineEdit, QComboBox, QCheckBox
from qgis.PyQt.QtWidgets import (QWidget,
QVBoxLayout,
QPushButton,
QLabel,
QPlainTextEdit,
QLineEdit,
QComboBox,
QCheckBox,
QSizePolicy)

from qgis.gui import QgsMessageBar

from processing.gui.AlgorithmDialog import AlgorithmDialog
from processing.gui.AlgorithmDialogBase import AlgorithmDialogBase
from processing.gui.ParametersPanel import ParametersPanel
Expand All @@ -36,10 +47,14 @@
class GdalAlgorithmDialog(AlgorithmDialog):

def __init__(self, alg):
AlgorithmDialog.__init__(self, alg)
AlgorithmDialogBase.__init__(self, alg)

self.alg = alg

self.bar = QgsMessageBar()
self.bar.setSizePolicy(QSizePolicy.Minimum, QSizePolicy.Fixed)
self.layout().insertWidget(0, self.bar)

self.setMainWidget(GdalParametersPanel(self, alg))

cornerWidget = QWidget()
Expand Down

0 comments on commit 5c8c53c

Please sign in to comment.