Skip to content

Commit

Permalink
Dbg
Browse files Browse the repository at this point in the history
  • Loading branch information
metsma committed Apr 26, 2024
1 parent 30281d1 commit ba58172
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions client/widgets/ContainerPage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include "widgets/SignatureItem.h"
#include "widgets/WarningItem.h"

#include <QDebug>
#include <QDir>
#include <QFileInfo>
#include <QFontMetrics>
Expand Down Expand Up @@ -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); });
};

Expand Down Expand Up @@ -178,6 +180,7 @@ bool ContainerPage::eventFilter(QObject *o, QEvent *e)

void ContainerPage::forward(int code)
{
qDebug() << objectName() << "::forward " << code;
switch (code)
{
case SignatureMobile:
Expand Down
1 change: 0 additions & 1 deletion client/widgets/LabelButton.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ class LabelButton : public QToolButton
BoxedDeepCeruleanWithCuriousBlue, // Edit
DeepCeruleanWithLochmara, // Add files
White,
None
};

explicit LabelButton(QWidget *parent = nullptr);
Expand Down

0 comments on commit ba58172

Please sign in to comment.