Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
eab25187
Commit
eab25187
authored
Mar 21, 2011
by
Thorbjørn Lindeijer
Browse files
QmlJSDebugger: Fixed the enum toString methods
Should use valueToKey since the key method works by index.
parent
42b4e6c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
share/qtcreator/qml/qmljsdebugger/protocol/observerprotocol.h
View file @
eab25187
...
...
@@ -77,12 +77,12 @@ public:
static
inline
QString
toString
(
Message
message
)
{
return
staticMetaObject
.
enumerator
(
0
).
k
ey
(
message
);
return
staticMetaObject
.
enumerator
(
0
).
valueToK
ey
(
message
);
}
static
inline
QString
toString
(
Tool
tool
)
{
return
staticMetaObject
.
enumerator
(
1
).
k
ey
(
tool
);
return
staticMetaObject
.
enumerator
(
1
).
valueToK
ey
(
tool
);
}
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment