Showing the changes to interface/src/ui/ScriptEditorWindow.cpp (1 of 4 files). Show all
Unified · Split
| @@ -180,11 +180,11 @@ void ScriptEditorWindow::closeEvent(QCloseEvent *event) { · 179 unmodified lines | |||
| 180 | 180 | ||
| 181 | void ScriptEditorWindow::updateScriptNameOrStatus() { | 181 | void ScriptEditorWindow::updateScriptNameOrStatus() { |
| 182 | ScriptEditorWidget* source = (ScriptEditorWidget*)QObject::sender(); | 182 | ScriptEditorWidget* source = (ScriptEditorWidget*)QObject::sender(); |
| 183 | QString modifiedStar = (source->isModified()?"*":""); | 183 | QString modifiedStar = (source->isModified()? "*" : ""); |
| 184 | if (source->getScriptName().length() > 0) { | 184 | if (source->getScriptName().length() > 0) { |
| 185 | for (int i = 0; i < _ScriptEditorWindowUI->tabWidget->count(); i++){ | 185 | for (int i = 0; i < _ScriptEditorWindowUI->tabWidget->count(); i++){ |
| 186 | if (_ScriptEditorWindowUI->tabWidget->widget(i) == source) { | 186 | if (_ScriptEditorWindowUI->tabWidget->widget(i) == source) { |
| 187 | _ScriptEditorWindowUI->tabWidget->setTabText(i,modifiedStar + QFileInfo(source->getScriptName()).fileName()); | 187 | _ScriptEditorWindowUI->tabWidget->setTabText(i, modifiedStar + QFileInfo(source->getScriptName()).fileName()); |
| 188 | _ScriptEditorWindowUI->tabWidget->setTabToolTip(i, source->getScriptName()); | 188 | _ScriptEditorWindowUI->tabWidget->setTabToolTip(i, source->getScriptName()); |
| 189 | } | 189 | } |
| 190 | } | 190 | } |