diff options
Diffstat (limited to 'utils/themeeditor/gui/skindocument.cpp')
-rw-r--r-- | utils/themeeditor/gui/skindocument.cpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/utils/themeeditor/gui/skindocument.cpp b/utils/themeeditor/gui/skindocument.cpp index 8c98255cca..4f48d341fe 100644 --- a/utils/themeeditor/gui/skindocument.cpp +++ b/utils/themeeditor/gui/skindocument.cpp | |||
@@ -30,9 +30,9 @@ | |||
30 | #include <iostream> | 30 | #include <iostream> |
31 | 31 | ||
32 | SkinDocument::SkinDocument(QLabel* statusLabel, ProjectModel* project, | 32 | SkinDocument::SkinDocument(QLabel* statusLabel, ProjectModel* project, |
33 | QWidget *parent) | 33 | DeviceState* device, QWidget *parent) |
34 | :TabContent(parent), statusLabel(statusLabel), | 34 | :TabContent(parent), statusLabel(statusLabel), |
35 | project(project) | 35 | project(project), device(device) |
36 | { | 36 | { |
37 | setupUI(); | 37 | setupUI(); |
38 | 38 | ||
@@ -44,9 +44,11 @@ SkinDocument::SkinDocument(QLabel* statusLabel, ProjectModel* project, | |||
44 | } | 44 | } |
45 | 45 | ||
46 | SkinDocument::SkinDocument(QLabel* statusLabel, QString file, | 46 | SkinDocument::SkinDocument(QLabel* statusLabel, QString file, |
47 | ProjectModel* project, QWidget *parent) | 47 | ProjectModel* project, DeviceState* device, |
48 | QWidget *parent) | ||
48 | :TabContent(parent), fileName(file), | 49 | :TabContent(parent), fileName(file), |
49 | statusLabel(statusLabel), project(project) | 50 | statusLabel(statusLabel), project(project), |
51 | device(device) | ||
50 | { | 52 | { |
51 | setupUI(); | 53 | setupUI(); |
52 | blockUpdate = false; | 54 | blockUpdate = false; |
@@ -145,6 +147,10 @@ void SkinDocument::setupUI() | |||
145 | QObject::connect(editor, SIGNAL(cursorPositionChanged()), | 147 | QObject::connect(editor, SIGNAL(cursorPositionChanged()), |
146 | this, SLOT(cursorChanged())); | 148 | this, SLOT(cursorChanged())); |
147 | 149 | ||
150 | /* Connecting to device setting changes */ | ||
151 | QObject::connect(device, SIGNAL(settingsChanged()), | ||
152 | this, SLOT(deviceChanged())); | ||
153 | |||
148 | settingsChanged(); | 154 | settingsChanged(); |
149 | } | 155 | } |
150 | 156 | ||
@@ -257,7 +263,7 @@ void SkinDocument::codeChanged() | |||
257 | else | 263 | else |
258 | emit titleChanged(titleText); | 264 | emit titleChanged(titleText); |
259 | 265 | ||
260 | model->render(project, &fileName); | 266 | model->render(project, device, &fileName); |
261 | 267 | ||
262 | cursorChanged(); | 268 | cursorChanged(); |
263 | 269 | ||