From e4ad766315879e1ff05bb111229f073f8f0ed68e Mon Sep 17 00:00:00 2001 From: Andreas Grois Date: Mon, 10 Oct 2022 21:30:02 +0200 Subject: PassFish: Initial Commit Well, that's a lie. But nobody needs to see all the iterations I decided to sweep under the rug. That said, I think the repo is, while not clean, clean enough now, to not be embarrassed by uploading it to github. --- src/PassFish.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/PassFish.cpp (limited to 'src/PassFish.cpp') diff --git a/src/PassFish.cpp b/src/PassFish.cpp new file mode 100644 index 0000000..80eef2a --- /dev/null +++ b/src/PassFish.cpp @@ -0,0 +1,28 @@ +#include +#include +#include +#include "Bindings.h" +#include "GraphemeCountValidator.h" + +Q_DECL_EXPORT int main(int argc, char *argv[]) +{ + QScopedPointer app{SailfishApp::application(argc,argv)}; + QScopedPointer view{SailfishApp::createView()}; + + qmlRegisterType("PWM", 1, 0, "GraphemeCountValidator"); + + PasswordMaker maker; + view->rootContext()->setContextProperty("passwordmaker",&maker); + QObject::connect(&maker, + &PasswordMaker::i_say_sexy_things_to_myself_while_im_dancingChanged, + &maker, + [&]() {maker.setI_say_sexy_things_to_myself_while_im_dancing(true);}, + (Qt::ConnectionType)(Qt::AutoConnection | Qt::UniqueConnection) + ); + + view->setSource(SailfishApp::pathTo(QString("qml/PassFish.qml"))); + view->show(); + + return app->exec(); +} + -- cgit v1.2.3