Changeset View
Changeset View
Standalone View
Standalone View
src/scripteditor/scripteditorwidget.cpp
- This file was moved from src/scripteditorwidget.cpp.
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | 91 | { | |||
---|---|---|---|---|---|
92 | QString highlightingMode = m_script->highlightingMode(); | 92 | QString highlightingMode = m_script->highlightingMode(); | ||
93 | m_script->closeUrl(); | 93 | m_script->closeUrl(); | ||
94 | m_script->setHighlightingMode(highlightingMode); | 94 | m_script->setHighlightingMode(highlightingMode); | ||
95 | } | 95 | } | ||
96 | 96 | | |||
97 | void ScriptEditorWidget::open() | 97 | void ScriptEditorWidget::open() | ||
98 | { | 98 | { | ||
99 | QUrl url = QFileDialog::getOpenFileUrl(this, QString(), QUrl(), m_filter); | 99 | QUrl url = QFileDialog::getOpenFileUrl(this, QString(), QUrl(), m_filter); | ||
100 | m_script->openUrl(url); | ||||
101 | } | ||||
100 | 102 | | |||
103 | void ScriptEditorWidget::open(QUrl url) | ||||
104 | { | ||||
101 | m_script->openUrl(url); | 105 | m_script->openUrl(url); | ||
102 | } | 106 | } | ||
103 | 107 | | |||
104 | void ScriptEditorWidget::run() | 108 | void ScriptEditorWidget::run() | ||
105 | { | 109 | { | ||
106 | QString filename; | 110 | QString filename; | ||
107 | if(!m_script->url().isLocalFile()) | 111 | if(!m_script->url().isLocalFile()) | ||
108 | { | 112 | { | ||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |