bool KompareSplitter::needHScrollBar() { const int end = count(); for ( int i = 0; i < end; ++i ) { KompareListView *view = listView(i); if ( view->contentsWidth() > view->visibleWidth() ) return true; } return false; }
int KompareSplitter::maxHScrollId() { int max = 0; int mHSId; const int end = count(); for ( int i = 0; i < end; ++i ) { KompareListView *view = listView(i); mHSId = view->contentsWidth() - view->visibleWidth(); if ( mHSId > max ) max = mHSId; } return max; }
bool KompareSplitter::needHScrollBar() { QSplitterLayoutStruct *curr; for ( curr = d->list.first(); curr; curr = d->list.next() ) { if( !curr->isHandle ) { KompareListView *view = ((KompareListViewFrame*) curr->wid)->view(); if ( view->contentsWidth() > view->visibleWidth() ) return true; } } return false; }
int KompareSplitter::maxHScrollId() { QSplitterLayoutStruct *curr; int max = 0; int mHSId; for ( curr = d->list.first(); curr; curr = d->list.next() ) { if( !curr->isHandle ) { KompareListView *view = ((KompareListViewFrame*) curr->wid)->view(); mHSId = view->contentsWidth() - view->visibleWidth(); if ( mHSId > max ) max = mHSId; } } return max; }