void RazorTaskBar::refreshButtonVisibility() { QHashIterator<Window, RazorTaskButton*> i(mButtonsHash); while (i.hasNext()) { i.next(); i.value()->setHidden(!windowOnActiveDesktop(i.key())); } }
void window_list::refreshButtonVisibility() { QHashIterator<Window, InstanceOfWindow*> i(buttons); while (i.hasNext()) { i.next(); i.value()->setHidden(!windowOnActiveDesktop(i.key())); } }
void RazorTaskBar::wheelEvent(QWheelEvent* event) { XfitMan xf = xfitMan(); QList<Window> winList = xf.getClientList(); int current = winList.indexOf(xf.getActiveAppWindow()); int delta = event->delta() < 0 ? 1 : -1; for (int ix = current + delta; 0 <= ix && ix < winList.size(); ix += delta) { Window window = winList.at(ix); if (xf.acceptWindow(window) && windowOnActiveDesktop(window)) { xf.raiseWindow(window); break; } } }