Logo Search packages:      
Sourcecode: kdar version File versions  Download package

QStringList KDarConfig::makeQStringList ( QListView *  listView,
int  column = 0 
) [protected]

Returns a QStringList of values from a the contents of the listView.

Definition at line 1921 of file kdarConfig.cpp.

Referenced by fillListView(), loadDirectoryFilters(), newCompressionFilter(), newDirectoryFilter(), newFileFilter(), slotUpdateCompressionMaskList(), and slotUpdateFileMaskList().

{
    QStringList list;
    QListViewItem * tmpItem = listView->firstChild();
    QString text;
    while( tmpItem )
    {
        text = tmpItem->text( column );
        if ( !list.contains( text ) )
        {
            list << text;
        }
        tmpItem = tmpItem->nextSibling();
    }
    return list;
}


Generated by  Doxygen 1.6.0   Back to index