diff --git a/application.qrc b/application.qrc index 8267352..a76f201 100644 --- a/application.qrc +++ b/application.qrc @@ -45,7 +45,6 @@ res/money-mouth.png res/money-outgoing.png res/hush-money-white.png - res/hushdlogo.png @@ -56,26 +55,27 @@ res/silentdragonlite-animated-startup-dark.gif res/loaderblack.gif res/loaderwhite.gif + res/logobig.gif - res/emoji/emoji1.png - res/emoji/laughing.png - res/emoji/money-mouth.png - res/emoji/joy.png - res/emoji/innocent.png - res/emoji/partying_face.png - res/emoji/face_with_3hearts.png - res/emoji/face-with-rolling-eyes.png - res/emoji/face-with-tongue.png - res/emoji/heart_shaped_eyes.png - res/emoji/nauseated-face.png - res/emoji/pile-of-poo.png - res/emoji/serious-face-with-symbols-covering-mouth.png - res/emoji/smiling-face-with-sunglasses.png - res/emoji/stuck-out.png - res/emoji/sweet_smile.png - res/emoji/hush-money-white.png - res/emoji/SD.png + res/emoji/emoji1.png + res/emoji/laughing.png + res/emoji/money-mouth.png + res/emoji/joy.png + res/emoji/innocent.png + res/emoji/partying_face.png + res/emoji/face_with_3hearts.png + res/emoji/face-with-rolling-eyes.png + res/emoji/face-with-tongue.png + res/emoji/heart_shaped_eyes.png + res/emoji/nauseated-face.png + res/emoji/pile-of-poo.png + res/emoji/serious-face-with-symbols-covering-mouth.png + res/emoji/smiling-face-with-sunglasses.png + res/emoji/stuck-out.png + res/emoji/sweet_smile.png + res/emoji/hush-money-white.png + res/emoji/SD.png res/silentdragonlite_ar.qm diff --git a/src/mainwindow.ui b/src/mainwindow.ui index 7925a7f..165c8e2 100644 --- a/src/mainwindow.ui +++ b/src/mainwindow.ui @@ -6,8 +6,8 @@ 0 0 - 1308 - 779 + 1379 + 781 @@ -93,7 +93,6 @@ - 75 true @@ -711,7 +710,6 @@ - 75 true @@ -724,7 +722,6 @@ - 75 true @@ -883,7 +880,6 @@ - 75 true @@ -956,8 +952,8 @@ 0 0 - 1268 - 519 + 1301 + 493 @@ -1311,6 +1307,9 @@ + + 0 + @@ -1427,16 +1426,37 @@ - + - + 0 0 + + + 228 + 228 + + + + + 0 + 0 + + + + + 0 + 0 + + + + false + - background-color: #fff + @@ -1909,8 +1929,8 @@ 0 0 - 1308 - 30 + 1379 + 24 diff --git a/src/qrcodelabel.cpp b/src/qrcodelabel.cpp index d26da13..3f8a06a 100644 --- a/src/qrcodelabel.cpp +++ b/src/qrcodelabel.cpp @@ -12,7 +12,7 @@ QRCodeLabel::QRCodeLabel(QWidget *parent) : QSize QRCodeLabel::sizeHint() const { int w = this->width(); - return QSize(w, w); // 1:1 + return QSize(w, w); // 1:1 } void QRCodeLabel::resizeEvent(QResizeEvent*) @@ -25,8 +25,8 @@ QPixmap QRCodeLabel::scaledPixmap() const { QPixmap pm(size()); pm.fill(Qt::white); QPainter painter(&pm); - - qrcodegen::QrCode qr = qrcodegen::QrCode::encodeText(str.toUtf8().constData(), qrcodegen::QrCode::Ecc::LOW); + + qrcodegen::QrCode qr = qrcodegen::QrCode::encodeText(str.toUtf8().constData(), qrcodegen::QrCode::Ecc::HIGH); const int s = qr.getSize()>0?qr.getSize():1; const double w = pm.width(); const double h = pm.height(); @@ -35,8 +35,8 @@ QPixmap QRCodeLabel::scaledPixmap() const { const double scale = size/(s+2); const double woff = (w - size) > 0 ? (w - size) / 2 : 0; const double hoff = (h - size) > 0 ? (h - size) / 2 : 0; - - // NOTE: For performance reasons my implementation only draws the foreground parts + + // NOTE: For performance reasons my implementation only draws the foreground parts painter.setPen(Qt::NoPen); painter.setBrush(QColor(Qt::black)); for(int y=0; y