aboutsummaryrefslogtreecommitdiff
path: root/components/image.py
diff options
context:
space:
mode:
authortassaron2017-06-12 22:34:37 -0400
committertassaron2017-06-12 22:34:37 -0400
commit307d499f9ae2729c790fe9258d88aca72331cdf6 (patch)
tree105dedf7aa84c1841d8a87f304f43d7a616fa32a /components/image.py
parentdbbefbf70ec9fad1735ee7199992ca6123bd54be (diff)
adding an asterisk to modified, unsaved presets
flags for unsaved changes saved in project files
Diffstat (limited to 'components/image.py')
-rw-r--r--components/image.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/components/image.py b/components/image.py
index 441e0e1..ed5f243 100644
--- a/components/image.py
+++ b/components/image.py
@@ -6,6 +6,9 @@ from . import __base__
class Component(__base__.Component):
'''Image'''
+
+ modified = QtCore.pyqtSignal(int, bool)
+
def widget(self, parent):
self.parent = parent
self.settings = parent.settings
@@ -22,6 +25,7 @@ class Component(__base__.Component):
return page
def update(self):
+ super().update()
self.imagePath = self.page.lineEdit_image.text()
self.parent.drawPreview()
@@ -49,7 +53,7 @@ class Component(__base__.Component):
return frame
def loadPreset(self, pr, presetName=None):
- self.currentPreset = presetName if presetName else pr['preset']
+ super().loadPreset(pr, presetName)
self.page.lineEdit_image.setText(pr['image'])
def savePreset(self):