CheckDirModel::CheckDirModel( QWidget* parent ) : QFileSystemModel( parent ) , m_shownVolumes( false ) { #ifdef Q_WS_MAC QProcess* checkVolumeVisible = new QProcess( this ); connect( checkVolumeVisible, SIGNAL( readyReadStandardOutput() ), this, SLOT( getFileInfoResult() ) ); checkVolumeVisible->start( "GetFileInfo", QStringList() << "-aV" << s_macVolumePath ); #endif }
CheckDirModel::CheckDirModel( QWidget* parent ) : QFileSystemModel( parent ) , m_shownVolumes( false ) { #ifdef Q_OS_MAC m_setFilePath = QString( "%1/SetFile" ) .arg( QCoreApplication::applicationDirPath() ); m_getFileInfoPath = QString( "%1/GetFileInfo" ).arg( QCoreApplication::applicationDirPath() ); QProcess* checkVolumeVisible = new QProcess( this ); connect( checkVolumeVisible, SIGNAL( readyReadStandardOutput() ), this, SLOT( getFileInfoResult() ) ); qDebug() << "Running GetFileInfo:" << m_getFileInfoPath << "-aV" << s_macVolumePath; checkVolumeVisible->start( m_getFileInfoPath, QStringList() << "-aV" << s_macVolumePath ); #endif }