Warning, file /education/labplot/tests/CommonTest.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002     File                 : CommonTest.cpp
0003     Project              : LabPlot
0004     Description          : General test class
0005     --------------------------------------------------------------------
0006     SPDX-FileCopyrightText: 2019 Stefan Gerlach <stefan.gerlach@uni.kn>
0007 
0008     SPDX-License-Identifier: GPL-2.0-or-later
0009 */
0010 
0011 #include "CommonTest.h"
0012 #include "backend/core/column/Column.h"
0013 #ifdef _WIN32
0014 #include <windows.h>
0015 #endif
0016 
0017 void CommonTest::initTestCase() {
0018 #ifdef _WIN32
0019     if (AttachConsole(ATTACH_PARENT_PROCESS)) {
0020         freopen("CONOUT$", "w", stdout);
0021         freopen("CONOUT$", "w", stderr);
0022     }
0023 #endif
0024 
0025     // needed in order to have the signals triggered by SignallingUndoCommand, see LabPlot.cpp
0026     // TODO: redesign/remove this
0027     qRegisterMetaType<const AbstractAspect*>("const AbstractAspect*");
0028     qRegisterMetaType<const AbstractColumn*>("const AbstractColumn*");
0029 }