Imported existing sources
This commit is contained in:
1 parent
3aa39af9e3
commit
a62aa7ec5a
17 files changed
+544
No files matched your search
@@ -0,0 +1,28 @@
|
||||
#include <QCoreApplication>
|
||||
#include <QDebug>
|
||||
|
||||
#include "messages/mymessage.h"
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
QCoreApplication app(argc, argv);
|
||||
|
||||
MyMessage original("Daniel", QDate(1996, 11, 12), QDateTime::currentDateTime(), 21, 80);
|
||||
MyMessage copy(original);
|
||||
|
||||
original.setName("Peter");
|
||||
|
||||
QVariantMap delta;
|
||||
original.copyTouchedTo(delta);
|
||||
original.setTouched(false);
|
||||
|
||||
qDebug() << "before applying delta";
|
||||
copy.debug();
|
||||
|
||||
copy.apply(delta);
|
||||
|
||||
qDebug() << "after applying delta";
|
||||
copy.debug();
|
||||
|
||||
return app.exec();
|
||||
}
|
||||
Reference in new issue
Block a user