Last change
on this file since 5 was 2, checked in by Dmitry A. Kuminov, 16 years ago |
Initially imported qt-all-opensource-src-4.5.1 from Trolltech.
|
File size:
260 bytes
|
Line | |
---|
1 | //! [0]
|
---|
2 | QCache<int, Employee> cache;
|
---|
3 | //! [0]
|
---|
4 |
|
---|
5 |
|
---|
6 | //! [1]
|
---|
7 | Employee *employee = new Employee;
|
---|
8 | employee->setId(37);
|
---|
9 | employee->setName("Richard Schmit");
|
---|
10 | ...
|
---|
11 | cache.insert(employee->id(), employee);
|
---|
12 | //! [1]
|
---|
13 |
|
---|
14 |
|
---|
15 | //! [2]
|
---|
16 | QCache<int, MyDataStructure> cache(5000);
|
---|
17 | //! [2]
|
---|
Note:
See
TracBrowser
for help on using the repository browser.