QString KstIfaceImpl::activeWindow() { KstApp *app = KstApp::inst(); KMdiChildView *view = app->activeWindow(); if (view) { return view->caption(); } return QString::null; }
void KMDITest::listBoxExecuted( QListBoxItem *item ) { // Get the current item's text QString text = item->text(); // Active the corresponding tab for ( QValueList< KMdiChildView *>::iterator it = m_window.begin(); it != m_window.end(); ++it ) { // Get the view KMdiChildView *view = *it; assert( view ); // Is the view we need to show? if ( view->caption() == text ) { view->activate(); break; } } }
QString KstGuiData::currentWindow() { KMdiChildView *c = KstApp::inst()->activeWindow(); return c ? c->caption() : QString::null; }