File indexing completed on 2024-04-28 15:40:39

0001 /*
0002 * SPDX-FileCopyrightText: 1999 Matthias Elter <me@kde.org>
0003 * SPDX-FileCopyrightText: 2002 Patrick Julien <freak@codepimps.org>
0004 * SPDX-FileCopyrightText: 2015 Boudewijn Rempt <boud@valdyas.org>
0005 *
0006 *  SPDX-License-Identifier: GPL-2.0-or-later
0007 *
0008 *  This program is distributed in the hope that it will be useful,
0009 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
0010 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0011 *  GNU General Public License for more details.
0012 *
0013 *  You should have received a copy of the GNU General Public License
0014 *  along with this program; if not, write to the Free Software
0015 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
0016 */
0017 
0018 #include <QString>
0019 #include <QTextStream>
0020 
0021 #include <kritaversion.h>
0022 
0023 QTextStream& qStdOut()
0024 {
0025     static QTextStream ts( stdout );
0026     return ts;
0027 }
0028 
0029 extern "C" int main(int , char **)
0030 {
0031     qStdOut() << KRITA_VERSION_STRING << "\n";
0032     return 0;
0033 }