void kiptablesgenerator::slotDownService() { QListView* ports = (QListView*) namedWidgets["iPorts"]; QListViewItem *sel = ports->selectedItem(), *ibelow = 0; if (sel) ibelow=sel->itemBelow(); // Only check itemAbove() if it exists... if (sel && ibelow) sel->moveItem(ibelow); //Move the Item }
void kiptablesgenerator::slotUpService() { QListView* ports = (QListView*) namedWidgets["iPorts"]; QListViewItem *sel = ports->selectedItem(), *iabove = 0; if (sel) iabove=sel->itemAbove(); // Only check itemAbove() if it exists... if (sel && iabove) iabove->moveItem(sel); //Move the Item }
void kiptablesgenerator::slotDelHost() { QListView* hosts = (QListView*) namedWidgets["hostsList"]; QListViewItem *sel = hosts->selectedItem(); if (sel) delete sel; }
void kiptablesgenerator::slotDelForward() { QListView* forwards = (QListView*) namedWidgets["forwardsList"]; QListViewItem *sel = forwards->selectedItem(); if (sel) delete sel; }
void kiptablesgenerator::slotDelService() { QListView* ports = (QListView*) namedWidgets["iPorts"]; QListViewItem *sel = ports->selectedItem(); if (sel) delete sel; }