diff options
| author | tassaron | 2017-07-20 20:31:38 -0400 |
|---|---|---|
| committer | tassaron | 2017-07-20 20:31:38 -0400 |
| commit | f454814867443ceeeca2a3a2c2a676947184503c (patch) | |
| tree | be0ed824fd6218038041d5af48d273498cab87e1 /src/components/text.py | |
| parent | b1713d38fa91e39f142b0c234b6405229aa149e1 (diff) | |
ffmpeg functions moved to toolkit, component format simplified
component methods are auto-decorated & settings are now class variables
Diffstat (limited to 'src/components/text.py')
| -rw-r--r-- | src/components/text.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/components/text.py b/src/components/text.py index fc3ef5f..d511f22 100644 --- a/src/components/text.py +++ b/src/components/text.py @@ -9,9 +9,8 @@ from toolkit import rgbFromString, pickColor class Component(Component): - '''Title Text''' - - modified = QtCore.pyqtSignal(int, dict) + name = 'Title Text' + version = '1.0.0' def __init__(self, *args): super().__init__(*args) @@ -19,7 +18,7 @@ class Component(Component): def widget(self, parent): self.parent = parent - self.settings = self.parent.core.settings + self.settings = parent.settings height = int(self.settings.value('outputHeight')) width = int(self.settings.value('outputWidth')) @@ -106,7 +105,6 @@ class Component(Component): def savePreset(self): return { - 'preset': self.currentPreset, 'title': self.title, 'titleFont': self.titleFont.toString(), 'alignment': self.alignment, |
