Move useful QTest template specializations to global header file

Fix KDBX test linker errors on Windows
This commit is contained in:
Janek Bevendorff
2018-01-24 13:22:20 +01:00
parent 6e2500385c
commit 7a6850d5fe
33 changed files with 143 additions and 191 deletions

View File

@@ -13,6 +13,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
add_unit_test(NAME testgui SOURCES TestGui.cpp TemporaryFile.cpp LIBS ${TEST_LIBRARIES})
add_unit_test(NAME testguipixmaps SOURCES TestGuiPixmaps.cpp LIBS ${TEST_LIBRARIES})

View File

@@ -17,6 +17,7 @@
*/
#include "TestGui.h"
#include "TestGlobal.h"
#include <QAction>
#include <QApplication>
@@ -29,7 +30,6 @@
#include <QPlainTextEdit>
#include <QComboBox>
#include <QTemporaryFile>
#include <QTest>
#include <QToolBar>
#include <QToolButton>
#include <QTimer>

View File

@@ -16,13 +16,8 @@
*/
#include "TestGuiPixmaps.h"
#include <QTest>
#include "core/Database.h"
#include "TestGlobal.h"
#include "core/DatabaseIcons.h"
#include "core/Entry.h"
#include "core/Group.h"
#include "core/Metadata.h"
#include "crypto/Crypto.h"