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
Marco Bubke
flatpak-qt-creator
Commits
a1bdcc66
Commit
a1bdcc66
authored
Nov 25, 2010
by
Friedemann Kleint
Browse files
Debugger: Add STL types slot to gui test app.
Fix warnings.
parent
11c7e15a
Changes
3
Hide whitespace changes
Inline
Side-by-side
tests/manual/gdbdebugger/gui/mainwindow.cpp
View file @
a1bdcc66
...
...
@@ -81,6 +81,7 @@ void MainWindow::simpleBP(int inc, const QString &inx)
QString
x
=
"h
\"
allo"
;
QString
*
xp
=
&
x
;
qDebug
()
<<
inc
<<
inx
<<
*
xp
;
Q_UNUSED
(
array
)
}
void
MainWindow
::
on_actionDialog_triggered
()
...
...
@@ -148,6 +149,22 @@ void MainWindow::complexBP(int *inc, QString inx)
qDebug
()
<<
inc
<<
inx
<<
dir
.
absoluteFilePath
();
//statusBar()->showMessage(x);
Q_UNUSED
(
cc
)
Q_UNUSED
(
np
)
Q_UNUSED
(
c
)
Q_UNUSED
(
uc
)
Q_UNUSED
(
s
)
Q_UNUSED
(
us
)
Q_UNUSED
(
ip
)
Q_UNUSED
(
ipc
)
Q_UNUSED
(
ui
)
Q_UNUSED
(
l
)
Q_UNUSED
(
ul
)
Q_UNUSED
(
i64
)
Q_UNUSED
(
iu64
)
Q_UNUSED
(
r
)
Q_UNUSED
(
d
)
Q_UNUSED
(
xr
)
}
void
MainWindow
::
on_actionCrash_triggered
()
...
...
@@ -305,6 +322,7 @@ void MainWindow::on_actionExtTypes_triggered()
stringSet
.
insert
(
"S1"
);
stringSet
.
insert
(
"S2"
);
qDebug
()
<<
*
(
spsl
.
front
())
<<
hidden
;
Q_UNUSED
(
wwr
)
}
void
MainWindow
::
on_actionForeach_triggered
()
...
...
@@ -329,10 +347,12 @@ void Foo::MainWindow::on_actionScopes_triggered()
int
x
=
0
;
if
(
x
==
0
)
{
int
x
=
1
;
Q_UNUSED
(
x
)
}
else
{
int
x
=
2
;
Q_UNUSED
(
x
)
}
qDebug
()
<<
x
;
qDebug
()
<<
x
;
}
void
Foo
::
MainWindow
::
on_actionLongString_triggered
()
...
...
@@ -343,4 +363,19 @@ void Foo::MainWindow::on_actionLongString_triggered()
s
+=
incr
;
qDebug
()
<<
s
;
}
}
void
Foo
::
MainWindow
::
on_actionStdTypes_triggered
()
{
std
::
string
stdString
=
"s"
;
std
::
wstring
stdWString
=
L"ws"
;
std
::
map
<
std
::
string
,
std
::
string
>
stdStringStringMap
;
stdStringStringMap
.
insert
(
std
::
map
<
std
::
string
,
std
::
string
>::
value_type
(
stdString
,
stdString
));
std
::
map
<
std
::
wstring
,
std
::
wstring
>
stdStringWStringMap
;
stdStringWStringMap
.
insert
(
std
::
map
<
std
::
wstring
,
std
::
wstring
>::
value_type
(
stdWString
,
stdWString
));
std
::
set
<
std
::
string
>
stringSet
;
std
::
list
<
std
::
string
>
stringList
;
std
::
vector
<
std
::
string
>
stringVector
(
1
,
"bla"
);
std
::
vector
<
std
::
wstring
>
wStringVector
(
1
,
L"bla"
);
}
tests/manual/gdbdebugger/gui/mainwindow.h
View file @
a1bdcc66
...
...
@@ -69,6 +69,8 @@ private slots:
void
on_actionCrash_triggered
();
void
on_actionSimpleBP_triggered
();
void
on_actionStdTypes_triggered
();
private:
void
terminateThread
();
int
m_w
;
...
...
tests/manual/gdbdebugger/gui/mainwindow.ui
View file @
a1bdcc66
...
...
@@ -20,7 +20,7 @@
<x>
0
</x>
<y>
0
</y>
<width>
600
</width>
<height>
2
3
</height>
<height>
2
7
</height>
</rect>
</property>
<widget
class=
"QMenu"
name=
"menuFile"
>
...
...
@@ -46,6 +46,7 @@
<addaction
name=
"actionAssert"
/>
<addaction
name=
"actionScopes"
/>
<addaction
name=
"actionLongString"
/>
<addaction
name=
"actionStdTypes"
/>
</widget>
<widget
class=
"QStatusBar"
name=
"statusBar"
/>
<widget
class=
"QToolBar"
name=
"toolBar"
>
...
...
@@ -151,6 +152,11 @@
<string>
LongString
</string>
</property>
</action>
<action
name=
"actionStdTypes"
>
<property
name=
"text"
>
<string>
stdTypes
</string>
</property>
</action>
</widget>
<layoutdefault
spacing=
"6"
margin=
"11"
/>
<resources/>
...
...
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