Replace obsoleted signal

This has been obsoleted in Qt5 and dropped in Qt6
This commit is contained in:
Juergen Spitzmueller 2021-03-21 12:51:38 +01:00
parent 52dff70641
commit 2c553df178
2 changed files with 3 additions and 3 deletions

View File

@ -269,10 +269,10 @@ string const FloatPlacement::getAlignment() const
}
void FloatPlacement::on_placementCO_currentIndexChanged(QString const & text)
void FloatPlacement::on_placementCO_currentIndexChanged(int index)
{
checkAllowed();
if (text != "custom")
if (placementCO->itemText(index) != "custom")
return;
if (topCB->isChecked() || bottomCB->isChecked()
|| pageCB->isChecked() || herepossiblyCB->isChecked()

View File

@ -54,7 +54,7 @@ public:
std::string const getAlignment() const;
private Q_SLOTS:
void on_placementCO_currentIndexChanged(QString const &);
void on_placementCO_currentIndexChanged(int);
void changedSlot();
private: