Messy commit. Testing suff and some improvements to how data is shown.

This commit is contained in:
eelke 2017-12-09 10:45:13 +01:00
parent bebb3391c3
commit 3a13b7ffb4
59 changed files with 2045 additions and 716 deletions

View file

@ -0,0 +1,9 @@
#include "PrintTo_Qt.h"
void PrintTo(const QDateTime &dt, ::std::ostream* os) {
*os << dt.toString(Qt::ISODateWithMs).toUtf8().toStdString();
}
void PrintTo(const QString &s, ::std::ostream* os) {
*os << s.toUtf8().toStdString();
}

View file

@ -0,0 +1,11 @@
#ifndef PRINTTO_QT_H
#define PRINTTO_QT_H
#include <ostream>
#include <QDateTime>
#include <QString>
void PrintTo(const QDateTime &dt, ::std::ostream* os);
void PrintTo(const QString &s, ::std::ostream* os);
#endif // PRINTTO_QT_H

View file

@ -0,0 +1,32 @@
#-------------------------------------------------
#
# Project created by QtCreator 2017-12-01T10:07:31
#
#-------------------------------------------------
QT -= gui
TARGET = mygtestutils
TEMPLATE = lib
CONFIG += staticlib
# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \
PrintTo_Qt.cpp
HEADERS += \
PrintTo_Qt.h
unix {
target.path = /usr/lib
INSTALLS += target
}