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

View file

@ -235,22 +235,6 @@ p, li { white-space: pre-wrap; }
</hint>
</hints>
</connection>
<connection>
<sender>getUIDbutton</sender>
<signal>clicked()</signal>
<receiver>DiveShareExportDialog</receiver>
<slot>UIDFromBrowser()</slot>
<hints>
<hint type="sourcelabel">
<x>223</x>
<y>29</y>
</hint>
<hint type="destinationlabel">
<x>159</x>
<y>215</y>
</hint>
</hints>
</connection>
<connection>
<sender>doUploadButton</sender>
<signal>clicked()</signal>