Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qt-creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Hunger
qt-creator
Commits
8d6b4e51
Commit
8d6b4e51
authored
15 years ago
by
Erik Verbruggen
Browse files
Options
Downloads
Patches
Plain Diff
Renamed the ScriptEditorEditable to QmlEditorEditable.
parent
65b3830b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/plugins/qmleditor/qmleditor.cpp
+6
-6
6 additions, 6 deletions
src/plugins/qmleditor/qmleditor.cpp
src/plugins/qmleditor/qmleditor.h
+3
-3
3 additions, 3 deletions
src/plugins/qmleditor/qmleditor.h
src/plugins/qmleditor/qmlhoverhandler.cpp
+1
-1
1 addition, 1 deletion
src/plugins/qmleditor/qmlhoverhandler.cpp
with
10 additions
and
10 deletions
src/plugins/qmleditor/qmleditor.cpp
+
6
−
6
View file @
8d6b4e51
...
...
@@ -273,7 +273,7 @@ protected:
#endif
};
Script
EditorEditable
::
Script
EditorEditable
(
QmlTextEditor
*
editor
)
Qml
EditorEditable
::
Qml
EditorEditable
(
QmlTextEditor
*
editor
)
:
BaseTextEditorEditable
(
editor
)
{
...
...
@@ -320,7 +320,7 @@ QmlTextEditor::~QmlTextEditor()
QList
<
Declaration
>
QmlTextEditor
::
declarations
()
const
{
return
m_declarations
;
}
Core
::
IEditor
*
Script
EditorEditable
::
duplicate
(
QWidget
*
parent
)
Core
::
IEditor
*
Qml
EditorEditable
::
duplicate
(
QWidget
*
parent
)
{
QmlTextEditor
*
newEditor
=
new
QmlTextEditor
(
parent
);
newEditor
->
duplicateFrom
(
editor
());
...
...
@@ -328,12 +328,12 @@ Core::IEditor *ScriptEditorEditable::duplicate(QWidget *parent)
return
newEditor
->
editableInterface
();
}
const
char
*
Script
EditorEditable
::
kind
()
const
const
char
*
Qml
EditorEditable
::
kind
()
const
{
return
QmlEditor
::
Constants
::
C_QMLEDITOR
;
}
QmlTextEditor
::
Context
Script
EditorEditable
::
context
()
const
QmlTextEditor
::
Context
Qml
EditorEditable
::
context
()
const
{
return
m_context
;
}
...
...
@@ -612,12 +612,12 @@ void QmlTextEditor::indentBlock(QTextDocument *, QTextBlock block, QChar /*typed
TextEditor
::
BaseTextEditorEditable
*
QmlTextEditor
::
createEditableInterface
()
{
Script
EditorEditable
*
editable
=
new
Script
EditorEditable
(
this
);
Qml
EditorEditable
*
editable
=
new
Qml
EditorEditable
(
this
);
createToolBar
(
editable
);
return
editable
;
}
void
QmlTextEditor
::
createToolBar
(
Script
EditorEditable
*
editable
)
void
QmlTextEditor
::
createToolBar
(
Qml
EditorEditable
*
editable
)
{
m_methodCombo
=
new
QComboBox
;
m_methodCombo
->
setMinimumContentsLength
(
22
);
...
...
This diff is collapsed.
Click to expand it.
src/plugins/qmleditor/qmleditor.h
+
3
−
3
View file @
8d6b4e51
...
...
@@ -56,12 +56,12 @@ namespace Internal {
class
QmlHighlighter
;
class
QmlTextEditor
;
class
Script
EditorEditable
:
public
TextEditor
::
BaseTextEditorEditable
class
Qml
EditorEditable
:
public
TextEditor
::
BaseTextEditorEditable
{
Q_OBJECT
public:
Script
EditorEditable
(
QmlTextEditor
*
);
Qml
EditorEditable
(
QmlTextEditor
*
);
QList
<
int
>
context
()
const
;
bool
duplicateSupported
()
const
{
return
true
;
}
...
...
@@ -129,7 +129,7 @@ private slots:
protected
:
void
contextMenuEvent
(
QContextMenuEvent
*
e
);
TextEditor
::
BaseTextEditorEditable
*
createEditableInterface
();
void
createToolBar
(
Script
EditorEditable
*
editable
);
void
createToolBar
(
Qml
EditorEditable
*
editable
);
TextEditor
::
BaseTextEditor
::
Link
findLinkAt
(
const
QTextCursor
&
cursor
,
bool
resolveTarget
=
true
);
private
:
...
...
This diff is collapsed.
Click to expand it.
src/plugins/qmleditor/qmlhoverhandler.cpp
+
1
−
1
View file @
8d6b4e51
...
...
@@ -84,7 +84,7 @@ QmlHoverHandler::QmlHoverHandler(QObject *parent)
void
QmlHoverHandler
::
editorOpened
(
IEditor
*
editor
)
{
Script
EditorEditable
*
qmlEditor
=
qobject_cast
<
Script
EditorEditable
*>
(
editor
);
Qml
EditorEditable
*
qmlEditor
=
qobject_cast
<
Qml
EditorEditable
*>
(
editor
);
if
(
!
qmlEditor
)
return
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment