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);