Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
qtidenticon.cpp 505 B
#include <QCoreApplication>
#include <QtDebug>
#include <QtGlobal>

#include "identicon.h"

int
main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    QList<QString> hashes = {
      "@red_sky:ocean.joedonofry.com",
    };
    for (QString hash : hashes) {
        QByteArray hashArr = QByteArray::fromStdString(hash.toStdString());
        Identicon test(hash, 256);
        qInfo() << hash;
        qInfo() << test.generateSvg(test, false);
    }
    return 0;
    // return a.exec();
}