summaryrefslogtreecommitdiffstats
path: root/src/libgui/watch_view.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-04 14:08:40 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-04 14:08:40 -0600
commitdca4b260f029db8fbb9a33bfb2b0a2aa9a28edf1 (patch)
tree18ba70f38844c0b7b78264e28284da691c760e0f /src/libgui/watch_view.cpp
parent08396682f3324c6c1266be6a084793b261ada6a4 (diff)
downloadpiklab-dca4b260f029db8fbb9a33bfb2b0a2aa9a28edf1.tar.gz
piklab-dca4b260f029db8fbb9a33bfb2b0a2aa9a28edf1.zip
Rename KIcon to enhance compatibility with KDE4
Diffstat (limited to 'src/libgui/watch_view.cpp')
-rw-r--r--src/libgui/watch_view.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/libgui/watch_view.cpp b/src/libgui/watch_view.cpp
index 097960d..7fd5e8d 100644
--- a/src/libgui/watch_view.cpp
+++ b/src/libgui/watch_view.cpp
@@ -46,8 +46,8 @@ void Register::RegisterListView::init(const Device::Data *data)
{
delete _root;
_root = new ListViewItemContainer(i18n("Registers"), this);
- KIconLoader loader;
- _root->setPixmap(0, loader.loadIcon("piklab_chip", KIcon::Small));
+ TDEIconLoader loader;
+ _root->setPixmap(0, loader.loadIcon("piklab_chip", TDEIcon::Small));
_root->setSelectable(false);
_root->setOpen(true);
if (data) Device::groupui(*data).fillWatchListContainer(_root, _ids);
@@ -85,16 +85,16 @@ Register::WatchedListView::WatchedListView(TQWidget *parent)
addColumn(TQString());
_root = new ListViewItemContainer(i18n("Watched"), this);
- KIconLoader loader;
- _root->setPixmap(0, loader.loadIcon("viewmag", KIcon::Small));
+ TDEIconLoader loader;
+ _root->setPixmap(0, loader.loadIcon("viewmag", TDEIcon::Small));
_root->setSelectable(false);
_root->setOpen(true);
}
TDEPopupMenu *Register::WatchedListView::appendFormatMenu(TDEPopupMenu *parent, uint offset)
{
- KIconLoader loader;
- TQPixmap icon = loader.loadIcon("fonts", KIcon::Small);
+ TDEIconLoader loader;
+ TQPixmap icon = loader.loadIcon("fonts", TDEIcon::Small);
TDEPopupMenu *popup = new TDEPopupMenu;
popup->insertTitle(i18n("Format"));
FOR_EACH(NumberBase, base) popup->insertItem(base.label(), offset + base.type());
@@ -111,8 +111,8 @@ void Register::WatchedListView::init(const Device::Data *data)
Device::groupui(*data).fillWatchListContainer(_popup, _ids);
_popup->insertSeparator();
_formatPopup = appendFormatMenu(_popup, _ids.count());
- KIconLoader loader;
- TQPixmap icon = loader.loadIcon("cancel", KIcon::Small);
+ TDEIconLoader loader;
+ TQPixmap icon = loader.loadIcon("cancel", TDEIcon::Small);
_popup->insertItem(icon, i18n("Clear"), Debugger::manager, TQT_SLOT(stopWatchAll()));
}
@@ -181,11 +181,11 @@ void Register::WatchedListView::contextMenu(TQListViewItem *item, const TQPoint
TQPopupMenu *fpop = appendFormatMenu(pop, 0);
FOR_EACH(NumberBase, base) fpop->setItemChecked(base.type(), ritem->base()==base);
pop->insertSeparator();
- KIconLoader loader;
- TQPixmap icon = loader.loadIcon("edit", KIcon::Small);
+ TDEIconLoader loader;
+ TQPixmap icon = loader.loadIcon("edit", TDEIcon::Small);
int editId = pop->insertItem(icon, i18n("Edit"));
pop->setItemEnabled(editId, Main::programmerState()==Programmer::Halted);
- icon = loader.loadIcon("cancel", KIcon::Small);
+ icon = loader.loadIcon("cancel", TDEIcon::Small);
int removeId = pop->insertItem(icon, i18n("Remove"));
int res = pop->exec(p);
if ( res==editId ) ritem->startRename();