From ba58172596b2041b71d75905d24e0152d0d37a79 Mon Sep 17 00:00:00 2001 From: Raul Metsma Date: Tue, 10 Oct 2023 11:40:52 +0300 Subject: [PATCH] Dbg --- client/widgets/ContainerPage.cpp | 3 +++ client/widgets/LabelButton.h | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/client/widgets/ContainerPage.cpp b/client/widgets/ContainerPage.cpp index 8fa79bc2b..05023ef0a 100644 --- a/client/widgets/ContainerPage.cpp +++ b/client/widgets/ContainerPage.cpp @@ -34,6 +34,7 @@ #include "widgets/SignatureItem.h" #include "widgets/WarningItem.h" +#include #include #include #include @@ -65,6 +66,7 @@ ContainerPage::ContainerPage(QWidget *parent) mobileCode = Settings::MOBILEID_CODE; auto connectCode = [this](QToolButton *btn, int code) { + connect(btn, &QToolButton::clicked, btn, [btn] { qDebug() << btn->objectName() << "::clicked"; }); connect(btn, &QToolButton::clicked, this, [this,code] { emit forward(code); }); }; @@ -178,6 +180,7 @@ bool ContainerPage::eventFilter(QObject *o, QEvent *e) void ContainerPage::forward(int code) { + qDebug() << objectName() << "::forward " << code; switch (code) { case SignatureMobile: diff --git a/client/widgets/LabelButton.h b/client/widgets/LabelButton.h index f89dffde8..38b179a6e 100644 --- a/client/widgets/LabelButton.h +++ b/client/widgets/LabelButton.h @@ -34,7 +34,6 @@ class LabelButton : public QToolButton BoxedDeepCeruleanWithCuriousBlue, // Edit DeepCeruleanWithLochmara, // Add files White, - None }; explicit LabelButton(QWidget *parent = nullptr);