QString DocumentsLocation = QStandardPaths::writableLocation(QStandardPaths::HomeLocation) #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) Options::Options(QWidget *parent) : QWidget(parent) Out<<"Unrecognized option: "<<qPrintable(s)<<endl SHOW_WARNING_FOR_NOT_PERFECT_CONSTRAINTS=true Ĭout<<"Unrecognized option: "<<qPrintable(s)<<endl SHOW_WARNING_FOR_STUDENTS_MIN_HOURS_DAILY_WITH_ALLOW_EMPTY_DAYS=true PRINT_ACTIVITIES_WITH_SAME_STARTING_TIME=false " If this is a bug - please report it.").arg(testFileName)) Maybe you can try to change the output directory from the 'Settings' menu." "(FET cannot open or create file %1) - you might not be able to work correctly with FET. QMessageBox::critical(NULL, FetTranslate::tr("FET critical"), FetTranslate::tr("You don't have write permissions in the output directory " QString testFileName=OUTPUT_DIR+FILE_SEP+"test_write_permissions_1.tmp" īool t_t=test.open(QIODevice::ReadWrite) If this is a bug - please report it.").arg(QDir::toNativeSeparators(OUTPUT_DIR))) " Maybe you can try to change the output directory from the 'Settings' menu. QMessageBox::critical(NULL, FetTranslate::tr("FET critical"), FetTranslate::tr("Cannot create or use %1 directory (where the results should be stored) - you can continue operation, but you might not be able to work with FET." make sure that the output directory exists QStringList _args=QCoreApplication::arguments() OUTPUT_DIR=QDir::homePath()+FILE_SEP+"fet-results" Srand(unsigned(time(NULL))) //useless, I use randomKnuth(), but just in case I use somewhere rand() by mistake. ![]() QObject::connect(&qapplication, SIGNAL(lastWindowClosed()), &qapplication, SLOT(quit())) ![]() ![]() QCoreApplication qapplication(argc, argv)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |