summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorhjk <qtc-committer@nokia.com>2010-06-29 10:58:09 +0200
committerhjk <qtc-committer@nokia.com>2010-06-29 10:58:29 +0200
commiteffc5abdd828443251699241df205de363cc2a05 (patch)
tree5b0345f00c8e2b03a5d4bfa6ee7e77423b77ca09 /tests
parentb50ba6a27156045bba3a0107fc40e7385ca163b8 (diff)
downloadqt-creator-effc5abdd828443251699241df205de363cc2a05.tar.gz
debugger: don't try to compute tooltip if it's not shown
Diffstat (limited to 'tests')
-rw-r--r--tests/manual/gdbdebugger/simple/app.cpp34
1 files changed, 27 insertions, 7 deletions
diff --git a/tests/manual/gdbdebugger/simple/app.cpp b/tests/manual/gdbdebugger/simple/app.cpp
index 8a4f93a5f6..6eb30b48bd 100644
--- a/tests/manual/gdbdebugger/simple/app.cpp
+++ b/tests/manual/gdbdebugger/simple/app.cpp
@@ -187,13 +187,20 @@ private:
QHash<QObject *, Map::iterator> h;
};
-class X : virtual public Foo
+class X : public Foo
{
public:
X() {
}
};
+class XX : virtual public Foo
+{
+public:
+ XX() {
+ }
+};
+
class Y : virtual public Foo
{
public:
@@ -201,13 +208,24 @@ public:
}
};
+class D : public X, public Y
+{
+ int diamond;
+};
+
void testArray()
{
- X xxx;
+#if 1
+ X x;
+ XX xx;
+ D diamond;
+ Foo *f = &xx;
+ Foo ff;
double d[3][3];
for (int i = 0; i != 3; ++i)
for (int j = 0; j != 3; ++j)
d[i][j] = i + j;
+#endif
char c[20];
c[0] = 'a';
@@ -215,11 +233,12 @@ void testArray()
c[2] = 'c';
c[3] = 'd';
- QString x[20];
- x[0] = "a";
- x[1] = "b";
- x[2] = "c";
- x[3] = "d";
+#if 1
+ QString s[20];
+ s[0] = "a";
+ s[1] = "b";
+ s[2] = "c";
+ s[3] = "d";
Foo foo[10];
//for (int i = 0; i != sizeof(foo)/sizeof(foo[0]); ++i) {
@@ -227,6 +246,7 @@ void testArray()
foo[i].a = i;
foo[i].doit();
}
+#endif
}
#ifndef Q_CC_RVCT