summaryrefslogtreecommitdiffstats
path: root/src/libgui/editor_manager.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:05:21 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:05:21 -0600
commit6f617c4181afa90f3eba14139d4f92eb98834899 (patch)
tree8b1b3f1b1834eeca086e1b6948e926d726f3b025 /src/libgui/editor_manager.cpp
parentb42d04f596e5440b17d954ba9e24d55368030120 (diff)
downloadpiklab-6f617c4181afa90f3eba14139d4f92eb98834899.tar.gz
piklab-6f617c4181afa90f3eba14139d4f92eb98834899.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'src/libgui/editor_manager.cpp')
-rw-r--r--src/libgui/editor_manager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libgui/editor_manager.cpp b/src/libgui/editor_manager.cpp
index 8713c9e..47bf16b 100644
--- a/src/libgui/editor_manager.cpp
+++ b/src/libgui/editor_manager.cpp
@@ -115,10 +115,10 @@ bool EditorManager::openFile(const PURL::Url &url)
return true;
}
if ( !openEditor(url) ) {
- static_cast< KRecentFilesAction *>(Main::action("file_open_recent"))->removeURL(url.kurl());
+ static_cast< TDERecentFilesAction *>(Main::action("file_open_recent"))->removeURL(url.kurl());
return false;
}
- static_cast<KRecentFilesAction *>(Main::action("file_open_recent"))->addURL(url.kurl());
+ static_cast<TDERecentFilesAction *>(Main::action("file_open_recent"))->addURL(url.kurl());
return true;
}
@@ -397,7 +397,7 @@ void EditorManager::contextMenu(int i, const TQPoint &p)
TQPixmap saveIcon = loader.loadIcon("filesave", KIcon::Small);
TQPixmap saveAsIcon = loader.loadIcon("filesaveas", KIcon::Small);
TQPixmap reloadIcon = loader.loadIcon("reload", KIcon::Small);
- KPopupMenu *popup = new KPopupMenu;
+ TDEPopupMenu *popup = new TDEPopupMenu;
popup->insertTitle(title(*editor));
popup->insertItem(closeIcon, i18n("Close"), 1);
if ( nbEditors()>1 ) popup->insertItem(i18n("Close All Others"), 2);