diff options
author | Ian Walters <ian.walters@nokia.com> | 2009-04-03 02:44:38 (GMT) |
---|---|---|
committer | Ian Walters <ian.walters@nokia.com> | 2009-04-03 02:44:38 (GMT) |
commit | 423d6052844b2026c8acc8826d6546d3afc494d3 (patch) | |
tree | ffc1fb184d157f4211f817b995ddf353b4464631 /examples/tools | |
parent | 0d00798f6bdd098dbb59c6f1da5be5efd6c283fa (diff) | |
download | Qt-423d6052844b2026c8acc8826d6546d3afc494d3.zip Qt-423d6052844b2026c8acc8826d6546d3afc494d3.tar.gz Qt-423d6052844b2026c8acc8826d6546d3afc494d3.tar.bz2 |
Rename OffsetVector to ContiguousCache
Diffstat (limited to 'examples/tools')
-rw-r--r-- | examples/tools/contiguouscache/contiguouscache.pro | 9 | ||||
-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.pro | 9 | ||||
-rw-r--r-- | examples/tools/tools.pro | 2 |
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 \ |