Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
qt-creator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tobias Hunger
qt-creator
Commits
80a112f6
Commit
80a112f6
authored
Nov 12, 2009
by
hjk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugger: make QVariant dumper compile with QT_NO_SHORTCUT
parent
2df118c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
share/qtcreator/gdbmacros/gdbmacros.cpp
share/qtcreator/gdbmacros/gdbmacros.cpp
+10
-6
No files found.
share/qtcreator/gdbmacros/gdbmacros.cpp
View file @
80a112f6
...
...
@@ -2135,19 +2135,23 @@ static void qDumpQVariantHelper(const QVariant *v, QString *value,
*
value
=
qvariant_cast
<
QColor
>
(
*
v
).
name
();
break
;
case
QVariant
::
KeySequence
:
#ifndef QT_NO_SHORTCUT
*
value
=
qvariant_cast
<
QKeySequence
>
(
*
v
).
toString
();
#else
*
value
=
QString
::
fromLatin1
(
"Disabled by QT_NO_SHORTCUT"
);
#endif
break
;
case
QVariant
::
SizePolicy
:
*
value
=
sizePolicyValue
(
qvariant_cast
<
QSizePolicy
>
(
*
v
));
break
;
#endif
default:
{
static
const
char
*
qTypeFormat
=
sizeof
(
void
*
)
==
sizeof
(
long
)
?
"'"
NS
"%s "
NS
"qVariantValue<"
NS
"%s >'(*('"
NS
"QVariant'*)0x%lx)"
:
"'"
NS
"%s "
NS
"qVariantValue<"
NS
"%s >'(*('"
NS
"QVariant'*)0x%llx)"
;
static
const
char
*
nonQTypeFormat
=
sizeof
(
void
*
)
==
sizeof
(
long
)
?
"'%s "
NS
"qVariantValue<%s >'(*('"
NS
"QVariant'*)0x%lx)"
:
"'%s "
NS
"qVariantValue<%s >'(*('"
NS
"QVariant'*)0x%llx)"
;
static
const
char
*
qTypeFormat
=
sizeof
(
void
*
)
==
sizeof
(
long
)
?
"'"
NS
"%s "
NS
"qVariantValue<"
NS
"%s >'(*('"
NS
"QVariant'*)0x%lx)"
:
"'"
NS
"%s "
NS
"qVariantValue<"
NS
"%s >'(*('"
NS
"QVariant'*)0x%llx)"
;
static
const
char
*
nonQTypeFormat
=
sizeof
(
void
*
)
==
sizeof
(
long
)
?
"'%s "
NS
"qVariantValue<%s >'(*('"
NS
"QVariant'*)0x%lx)"
:
"'%s "
NS
"qVariantValue<%s >'(*('"
NS
"QVariant'*)0x%llx)"
;
char
buf
[
1000
];
const
char
*
format
=
(
v
->
typeName
()[
0
]
==
'Q'
)
?
qTypeFormat
:
nonQTypeFormat
;
qsnprintf
(
buf
,
sizeof
(
buf
)
-
1
,
format
,
v
->
typeName
(),
v
->
typeName
(),
v
);
...
...
Write
Preview
Markdown
is supported
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