Logo Search packages:      
Sourcecode: mailody-kde4 version File versions  Download package

DataListView::DataListView ( QWidget *  parent,
int  datacolumn,
int  columns 
) [explicit]

Constructor

Parameters:
parent the parent widget
datacolumn the column that needs the most space
columns the amount of columns, they will be added directly, so set the name with setColumnText.

Definition at line 33 of file datalistview.cpp.

        : MailodyBaseListView( parent ), m_datacolumn( data_column ),
        m_columns( columns ),m_size( 35 )

{
    header()->setResizeMode( QHeaderView::Fixed );
    setHorizontalScrollBarPolicy( Qt::ScrollBarAlwaysOff );

    setColumnCount( m_columns );
    for ( int i = 0; i < columns; i++ )
        if ( m_datacolumn != i )
            header()->resizeSection( i, m_size );

    m_clearTimer = new QTimer( this );
    m_clearTimer->setSingleShot( true );
    connect( m_clearTimer , SIGNAL( timeout() ), SLOT( slotResizeDoIt() ) );
}


Generated by  Doxygen 1.6.0   Back to index