Ignore:
Timestamp:
Nov 6, 2007, 11:27:57 PM (18 years ago)
Author:
dmik
Message:

Styles: Implemented the first version of the Warp4 style (contributed by Cornelis Bockemuehl).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/widgets/qlistview.cpp

    r2 r174  
    15741574        for ( uint i = 0; i < lv->d->column.size(); ++i ) {
    15751575            if ( pixmap( i ) )
     1576            {
     1577                if ( lv->style().styleHint( QStyle::SH_GUIStyle ) == QStyle::PMStyle )
     1578                    ph = QMAX( ph, pixmap( i )->height() + 4 );
     1579                else
    15761580                ph = QMAX( ph, pixmap( i )->height() );
     1581        }
    15771582        }
    15781583
     
    25962601    d->vci = 0;
    25972602    d->timer = new QTimer( this );
     2603    if ( style().styleHint( QStyle::SH_GUIStyle ) == QStyle::PMStyle )
     2604        d->levelWidth = 24;
     2605    else
    25982606    d->levelWidth = 20;
    25992607    d->r = 0;
     
    26132621    d->sortcolumn = 0;
    26142622    d->ascending = TRUE;
     2623    if ( style().styleHint( QStyle::SH_GUIStyle ) == QStyle::PMStyle )
     2624        d->allColumnsShowFocus = TRUE;
     2625    else
    26152626    d->allColumnsShowFocus = FALSE;
    26162627    d->fontMetricsHeight = fontMetrics().height();
     
    80778088    if ( d->h->iconSet( col ) )
    80788089        w += d->h->iconSet( col )->pixmap().width();
     8090    if ( style().styleHint( QStyle::SH_GUIStyle ) == QStyle::PMStyle )
     8091        w = QMAX( w, 24 );
     8092    else
    80798093    w = QMAX( w, 20 );
    80808094    QFontMetrics fm( fontMetrics() );
Note: See TracChangeset for help on using the changeset viewer.