chochatown
20th June 2009, 00:31
hello ,
i have to change from wxwidget to qt ,the problem is that i cant find a remplacement of wxfilesysteme in qt.
that's my code:
{
QString wildCard = "";
QString fileName = "";
lstFolderFiles->clear();
fileSystem->ChangePathTo( txtFolderSource->GetValue(), true );
for( int i = 1, j = 0; i < formatsCount; i ++ )
{
wildCard += wxT( "*." ) + formats[ i ][ 1 ];
fileName = fileSystem->FindFirst( wildCard, wxFILE );
if( fileName != wxEmptyString )
{
do
{
lstFolderFiles->AppendAndEnsureVisible( fileName );
if( radAllFolderSourceFiles->GetValue() )
{
lstFolderFiles->Check( j ++ );
}
}
while( ( fileName = fileSystem->FindNext() ) != wxEmptyString );
}
wildCard = "";
}
}
thanks
i have to change from wxwidget to qt ,the problem is that i cant find a remplacement of wxfilesysteme in qt.
that's my code:
{
QString wildCard = "";
QString fileName = "";
lstFolderFiles->clear();
fileSystem->ChangePathTo( txtFolderSource->GetValue(), true );
for( int i = 1, j = 0; i < formatsCount; i ++ )
{
wildCard += wxT( "*." ) + formats[ i ][ 1 ];
fileName = fileSystem->FindFirst( wildCard, wxFILE );
if( fileName != wxEmptyString )
{
do
{
lstFolderFiles->AppendAndEnsureVisible( fileName );
if( radAllFolderSourceFiles->GetValue() )
{
lstFolderFiles->Check( j ++ );
}
}
while( ( fileName = fileSystem->FindNext() ) != wxEmptyString );
}
wildCard = "";
}
}
thanks