cfgtest_Qsci.cpp 426 B

12345678910111213141516171819202122
  1. #include <QCoreApplication>
  2. #include <QFile>
  3. #include <QTextStream>
  4. #include <Qsci/qsciglobal.h>
  5. int main(int argc, char **argv)
  6. {
  7. QCoreApplication app(argc, argv);
  8. QFile outf(argv[1]);
  9. if (!outf.open(QIODevice::WriteOnly|QIODevice::Truncate|QIODevice::Text))
  10. return 1;
  11. QTextStream out(&outf);
  12. out << QSCINTILLA_VERSION << '\n';
  13. out << QSCINTILLA_VERSION_STR << '\n';
  14. return 0;
  15. }