int KompareSplitter::pageSize() { if(widget(0)) { KompareListView *view = listView(0); return view->visibleHeight() - view->style()->pixelMetric( QStyle::PM_ScrollBarExtent ); } return 1; }
int KompareSplitter::pageSize() { QSplitterLayoutStruct *curr; for ( curr = d->list.first(); curr; curr = d->list.next() ) { if ( !curr->isHandle ) { KompareListView *view = ((KompareListViewFrame*) curr->wid)->view(); return view->visibleHeight() - QStyle::PM_ScrollBarExtent; } } return 1; }