subjectList->addColumn( i18n( s_colAttr[ i ].labelName ) );
if ( s_colAttr[ i ].showDefault != true ) {
- subjectList->setColumnWidthMode( i, QListView::Manual );
- header->setResizeEnabled( false, i );
- subjectList->setColumnWidth( i, 0 );
+ hideColumn( i );
}
}
header->setStretchEnabled( true, Col_Subject );
}
}
+void ThreadListView::hideColumn( int col )
+{
+ QHeader* header = subjectList->header();
+ subjectList->setColumnWidthMode( col, QListView::Manual );
+ header->setResizeEnabled( false, col );
+ subjectList->setColumnWidth( col, 0 );
+}
+
#include "threadlistview.moc"
QStringList parseSearchQuery( const QString& input );
void searchNext( const QStringList& input );
void searchAll( const QStringList& query );
+ void hideColumn( int col );
protected slots:
void slotHideButton( bool on );