Qt6: move connection into C++ source

This no longer compiles when defined in the .ui file. But functionally this
should be the same and it should work on Qt5 and Qt6.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2022-02-09 17:23:11 -08:00
parent 63f0af201e
commit 5d506e4152
2 changed files with 2 additions and 16 deletions

View file

@ -18,6 +18,8 @@ DiveShareExportDialog::DiveShareExportDialog(QWidget *parent) :
exportSelected(false)
{
ui->setupUi(this);
// creating this connection in the .ui file appears to fail with Qt6
connect(ui->getUIDbutton, &QPushButton::clicked, this, &DiveShareExportDialog::UIDFromBrowser);
}
DiveShareExportDialog::~DiveShareExportDialog()