fix: MSVC build warning in bottombuttongroup.cpp

This commit is contained in:
Gary Wang 2020-10-29 00:13:59 +08:00
parent 0dfbb45238
commit 0a9ea1982b
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
# User files
*.user
*.user.*
# Translation files
*.qm

View File

@ -33,7 +33,7 @@ BottomButtonGroup::BottomButtonGroup(QWidget *parent)
QPushButton * btn = new QPushButton(QIcon(QStringLiteral(":/icons/") + text), "");
btn->setIconSize(QSize(40, 40));
btn->setFixedSize(40, 40);
connect(btn, &QAbstractButton::clicked, btn, func);
QObject::connect(btn, &QAbstractButton::clicked, btn, func);
return btn;
};
addButton(newBtn("zoom-original", [this]() {