Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
ecf75173
Commit
ecf75173
authored
Nov 27, 2009
by
hjk
Browse files
debugger: add a slightly more complex QObject manual test
parent
d8427157
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/manual/gdbdebugger/simple/app.cpp
View file @
ecf75173
...
...
@@ -488,9 +488,37 @@ void testQMultiMap()
#endif
}
namespace
Names
{
namespace
Bar
{
struct
Ui
{
Ui
()
{
w
=
0
;
}
QWidget
*
w
;
};
class
TestObject
:
public
QObject
{
Q_OBJECT
public:
TestObject
(
QObject
*
parent
=
0
)
:
QObject
(
parent
)
{
m_ui
=
new
Ui
;
m_ui
->
w
=
0
;
}
Ui
*
m_ui
;
};
}
// namespace Bar
}
// namespace Names
void
testQObject
(
int
&
argc
,
char
*
argv
[])
{
QApplication
app
(
argc
,
argv
);
Names
::
Bar
::
TestObject
test
;
QAction
act
(
"xxx"
,
&
app
);
QString
t
=
act
.
text
();
t
+=
"y"
;
...
...
@@ -1432,3 +1460,5 @@ struct QMetaTypeId< QMap<uint, QStringList> >
}
\
};
QT_END_NAMESPACE
#include
"app.moc"
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment