summaryrefslogtreecommitdiffstats
path: root/examples/tools
diff options
context:
space:
mode:
authorIan Walters <ian.walters@nokia.com>2009-04-03 12:44:38 +1000
committerIan Walters <ian.walters@nokia.com>2009-04-03 12:44:38 +1000
commit423d6052844b2026c8acc8826d6546d3afc494d3 (patch)
treeffc1fb184d157f4211f817b995ddf353b4464631 /examples/tools
parent0d00798f6bdd098dbb59c6f1da5be5efd6c283fa (diff)
Rename OffsetVector to ContiguousCache
Diffstat (limited to 'examples/tools')
-rw-r--r--examples/tools/contiguouscache/contiguouscache.pro9
-rw-r--r--examples/tools/contiguouscache/main.cpp (renamed from examples/tools/offsetvector/main.cpp)0
-rw-r--r--examples/tools/contiguouscache/randomlistmodel.cpp (renamed from examples/tools/offsetvector/randomlistmodel.cpp)0
-rw-r--r--examples/tools/contiguouscache/randomlistmodel.h (renamed from examples/tools/offsetvector/randomlistmodel.h)4
-rw-r--r--examples/tools/offsetvector/offsetvector.pro9
-rw-r--r--examples/tools/tools.pro2
6 files changed, 12 insertions, 12 deletions
diff --git a/examples/tools/contiguouscache/contiguouscache.pro b/examples/tools/contiguouscache/contiguouscache.pro
new file mode 100644
index 000000000..f840514f5
--- /dev/null
+++ b/examples/tools/contiguouscache/contiguouscache.pro
@@ -0,0 +1,9 @@
+HEADERS = randomlistmodel.h
+SOURCES = randomlistmodel.cpp \
+ main.cpp
+
+# install
+target.path = $$[QT_INSTALL_EXAMPLES]/tools/contiguouscache
+sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS contiguouscache.pro
+sources.path = $$[QT_INSTALL_EXAMPLES]/tools/contiguouscache
+INSTALLS += target sources
diff --git a/examples/tools/offsetvector/main.cpp b/examples/tools/contiguouscache/main.cpp
index bdeb3f3f8..bdeb3f3f8 100644
--- a/examples/tools/offsetvector/main.cpp
+++ b/examples/tools/contiguouscache/main.cpp
diff --git a/examples/tools/offsetvector/randomlistmodel.cpp b/examples/tools/contiguouscache/randomlistmodel.cpp
index 5c0953b4f..5c0953b4f 100644
--- a/examples/tools/offsetvector/randomlistmodel.cpp
+++ b/examples/tools/contiguouscache/randomlistmodel.cpp
diff --git a/examples/tools/offsetvector/randomlistmodel.h b/examples/tools/contiguouscache/randomlistmodel.h
index e102255cb..ad8cfad38 100644
--- a/examples/tools/offsetvector/randomlistmodel.h
+++ b/examples/tools/contiguouscache/randomlistmodel.h
@@ -1,7 +1,7 @@
#ifndef RANDOMLISTMODEL_H
#define RANDOMLISTMODEL_H
-#include <QOffsetVector>
+#include <QContiguousCache>
#include <QAbstractListModel>
class QTimer;
@@ -19,7 +19,7 @@ private:
void cacheRows(int, int) const;
QString fetchRow(int) const;
- mutable QOffsetVector<QString> m_rows;
+ mutable QContiguousCache<QString> m_rows;
const int m_count;
};
diff --git a/examples/tools/offsetvector/offsetvector.pro b/examples/tools/offsetvector/offsetvector.pro
deleted file mode 100644
index f329bb961..000000000
--- a/examples/tools/offsetvector/offsetvector.pro
+++ /dev/null
@@ -1,9 +0,0 @@
-HEADERS = randomlistmodel.h
-SOURCES = randomlistmodel.cpp \
- main.cpp
-
-# install
-target.path = $$[QT_INSTALL_EXAMPLES]/tools/offsetvector
-sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS offsetvector.pro
-sources.path = $$[QT_INSTALL_EXAMPLES]/tools/offsetvector
-INSTALLS += target sources
diff --git a/examples/tools/tools.pro b/examples/tools/tools.pro
index 424f2863c..c694dd8a6 100644
--- a/examples/tools/tools.pro
+++ b/examples/tools/tools.pro
@@ -5,7 +5,7 @@ SUBDIRS = codecs \
customcompleter \
echoplugin \
i18n \
- offsetvector \
+ contiguouscache \
plugandpaintplugins \
plugandpaint \
regexp \