tests/auto/languagechange/tst_languagechange.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
   191 #ifdef Q_OS_MAC
   191 #ifdef Q_OS_MAC
   192                     << "QFileSystemModel::Kind::Match OS X Finder"
   192                     << "QFileSystemModel::Kind::Match OS X Finder"
   193 #else
   193 #else
   194                     << "QFileSystemModel::Type::All other platforms"
   194                     << "QFileSystemModel::Type::All other platforms"
   195 #endif
   195 #endif
   196                     << "QFileSystemModel::%1 KB"
   196 //                    << "QFileSystemModel::%1 KB"
   197                     << "QDialogButtonBox::Cancel"
   197                     << "QDialogButtonBox::Cancel"
   198                     << "QDialogButtonBox::Open"
   198                     << "QDialogButtonBox::Open"
   199                     << "QFileDialog::File &name:");
   199                     << "QFileDialog::File &name:");
   200 }
   200 }
   201 
   201 
   230     case FileDialog: {
   230     case FileDialog: {
   231 #ifdef Q_WS_MAC
   231 #ifdef Q_WS_MAC
   232         QSKIP("The native file dialog is used on Mac OS", SkipSingle);
   232         QSKIP("The native file dialog is used on Mac OS", SkipSingle);
   233 #endif
   233 #endif
   234         QFileDialog dlg;
   234         QFileDialog dlg;
       
   235         dlg.setOption(QFileDialog::DontUseNativeDialog);
   235         QString tmpParentDir = QDir::tempPath() + "/languagechangetestdir";
   236         QString tmpParentDir = QDir::tempPath() + "/languagechangetestdir";
   236         QString tmpDir = tmpParentDir + "/finaldir";
   237         QString tmpDir = tmpParentDir + "/finaldir";
   237         QString fooName = tmpParentDir + "/foo";
   238         QString fooName = tmpParentDir + "/foo";
   238         QDir dir;
   239         QDir dir;
   239         QCOMPARE(dir.mkpath(tmpDir), true);
   240         QCOMPARE(dir.mkpath(tmpDir), true);