summaryrefslogtreecommitdiffstats
path: root/src/example.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/example.h')
-rw-r--r--src/example.h31
1 files changed, 21 insertions, 10 deletions
diff --git a/src/example.h b/src/example.h
index 425b488..4c0ab15 100644
--- a/src/example.h
+++ b/src/example.h
@@ -31,22 +31,33 @@ struct Example
QCString file;
};
-class ExampleList : public QList<Example>
+//class ExampleList : public QList<Example>
+//{
+// public:
+// ExampleList() : QList<Example>() {}
+// ~ExampleList() {}
+// int compareItems(GCI item1,GCI item2)
+// {
+// return stricmp(((Example *)item1)->name,((Example *)item2)->name);
+// }
+//};
+
+//class ExampleDict : public QDict<Example>
+//{
+// public:
+// ExampleDict(int size=17) : QDict<Example>(size) {}
+// ~ExampleDict() {}
+//};
+
+class ExampleSDict : public SDict<Example>
{
public:
- ExampleList() : QList<Example>() {}
- ~ExampleList() {}
+ ExampleSDict(int size=17) : SDict<Example>(size) {}
+ ~ExampleSDict() {}
int compareItems(GCI item1,GCI item2)
{
return stricmp(((Example *)item1)->name,((Example *)item2)->name);
}
};
-class ExampleDict : public QDict<Example>
-{
- public:
- ExampleDict(int size=17) : QDict<Example>(size) {}
- ~ExampleDict() {}
-};
-
#endif