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:
parent
4f08d643b9
commit
5654b3fd2e
@ -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()
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user