diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-04 14:08:40 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-04 14:08:40 -0600 |
commit | dca4b260f029db8fbb9a33bfb2b0a2aa9a28edf1 (patch) | |
tree | 18ba70f38844c0b7b78264e28284da691c760e0f /src/libgui/editor_manager.cpp | |
parent | 08396682f3324c6c1266be6a084793b261ada6a4 (diff) | |
download | piklab-dca4b260f029db8fbb9a33bfb2b0a2aa9a28edf1.tar.gz piklab-dca4b260f029db8fbb9a33bfb2b0a2aa9a28edf1.zip |
Rename KIcon to enhance compatibility with KDE4
Diffstat (limited to 'src/libgui/editor_manager.cpp')
-rw-r--r-- | src/libgui/editor_manager.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/libgui/editor_manager.cpp b/src/libgui/editor_manager.cpp index 2656e39..be56c63 100644 --- a/src/libgui/editor_manager.cpp +++ b/src/libgui/editor_manager.cpp @@ -152,10 +152,10 @@ TQString EditorManager::title(const Editor &e) const void EditorManager::updateTitles() { - KIconLoader loader; - TQPixmap def = loader.loadIcon("piklab", KIcon::Small); - TQPixmap modified = loader.loadIcon("filesave", KIcon::Small); - TQPixmap chip = loader.loadIcon("piklab_chip", KIcon::Small); + TDEIconLoader loader; + TQPixmap def = loader.loadIcon("piklab", TDEIcon::Small); + TQPixmap modified = loader.loadIcon("filesave", TDEIcon::Small); + TQPixmap chip = loader.loadIcon("piklab_chip", TDEIcon::Small); TQValueList<Editor *>::iterator it = _editors.begin(); for (; it!=_editors.end(); ++it) { static_cast<EditorTabBar *>(tabBar())->setReadOnly(indexOf(*it), (*it)->isReadOnly()); @@ -392,11 +392,11 @@ void EditorManager::contextMenu(int i, const TQPoint &p) Editor *editor = static_cast<Editor *>(page(i)); if ( editor==0 ) return; - KIconLoader loader; - TQPixmap closeIcon = loader.loadIcon("fileclose", KIcon::Small); - TQPixmap saveIcon = loader.loadIcon("filesave", KIcon::Small); - TQPixmap saveAsIcon = loader.loadIcon("filesaveas", KIcon::Small); - TQPixmap reloadIcon = loader.loadIcon("reload", KIcon::Small); + TDEIconLoader loader; + TQPixmap closeIcon = loader.loadIcon("fileclose", TDEIcon::Small); + TQPixmap saveIcon = loader.loadIcon("filesave", TDEIcon::Small); + TQPixmap saveAsIcon = loader.loadIcon("filesaveas", TDEIcon::Small); + TQPixmap reloadIcon = loader.loadIcon("reload", TDEIcon::Small); TDEPopupMenu *popup = new TDEPopupMenu; popup->insertTitle(title(*editor)); popup->insertItem(closeIcon, i18n("Close"), 1); |