File: cfgtest_Qsci.cpp

package info (click to toggle)
qscintilla2 2.13.3%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 18,352 kB
  • sloc: cpp: 98,695; javascript: 189; python: 104; makefile: 99; ansic: 20; sh: 7
file content (22 lines) | stat: -rw-r--r-- 423 bytes parent folder | download | duplicates (4)
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;
}