summaryrefslogtreecommitdiffstats
path: root/examples/tools
diff options
context:
space:
mode:
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 0000000..f840514
--- /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 bdeb3f3..bdeb3f3 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 5c0953b..5c0953b 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 e102255..ad8cfad 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 f329bb9..0000000
--- 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 424f286..c694dd8 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 \