diff options
| author | Holger Freyther <[email protected]> | 2006-12-10 21:01:38 +0000 |
|---|---|---|
| committer | Holger Freyther <[email protected]> | 2006-12-10 21:01:38 +0000 |
| commit | 6cb02408e418ca864c9e02d55f3358a1a7c64a15 (patch) | |
| tree | eca595a4bdbf5204411a9af85b2b399a530a56cb /src/dolphincontextmenu.cpp | |
| parent | 328de208710faebaa275e2ef8ddb28a78ea5a2f0 (diff) | |
Use a QLinkedList instead of Q3PtrList
svn path=/trunk/playground/utils/dolphin/; revision=612313
Diffstat (limited to 'src/dolphincontextmenu.cpp')
| -rw-r--r-- | src/dolphincontextmenu.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp index a2403a826..4c04170d6 100644 --- a/src/dolphincontextmenu.cpp +++ b/src/dolphincontextmenu.cpp @@ -91,12 +91,9 @@ void DolphinContextMenu::openViewportContextMenu() createNewMenu->insertSeparator(); - QAction* action = 0; - - Q3PtrListIterator<KAction> fileGrouptIt(dolphin->fileGroupActions()); - while ((action = fileGrouptIt.current()) != 0) { - createNewMenu->addAction(action); - ++fileGrouptIt; + QLinkedListIterator<QAction*> fileGrouptIt(dolphin->fileGroupActions()); + while (fileGrouptIt.hasNext()) { + createNewMenu->addAction(fileGrouptIt.next()); } // TODO: not used yet. See documentation of Dolphin::linkGroupActions() |
