File: cfgtest_Qsci.cpp

package info (click to toggle)
qscintilla2 2.11.6%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 18,172 kB
  • sloc: cpp: 95,666; ansic: 3,076; python: 1,569; javascript: 189; makefile: 73; sh: 7
file content (22 lines) | stat: -rw-r--r-- 423 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <QCoreApplication>
#include <QFile>
#include <QTextStream>

#include <Qsci/qsciglobal.h>


int main(int argc, char **argv)
{
    QCoreApplication app(argc, argv);
    QFile outf(argv[1]);

    if (!outf.open(QIODevice::WriteOnly|QIODevice::Truncate|QIODevice::Text))
        return 1;

    QTextStream out(&outf);

    out << QSCINTILLA_VERSION << '\n';
    out << QSCINTILLA_VERSION_STR << '\n';

    return 0;
}