Skip to content

Commit

Permalink
Fixed Qt6 issue in NodeListForm
Browse files Browse the repository at this point in the history
  • Loading branch information
bigfug committed Feb 27, 2024
1 parent c64f712 commit c516c24
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions FugioApp/nodelistform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,10 @@ void NodeListForm::on_mNodeList_itemSelectionChanged()
}


void NodeListForm::on_mNodeGroup_currentIndexChanged( const QString &pGroup )
void NodeListForm::on_mNodeGroup_currentIndexChanged(int index)
{
const QString pGroup = ui->mNodeGroup->currentText();

for( int i = 0 ; i < ui->mNodeList->count() ; i++ )
{
QListWidgetItem *I = ui->mNodeList->item( i );
Expand Down Expand Up @@ -171,5 +173,5 @@ void NodeListForm::on_mNodeGroup_currentIndexChanged( const QString &pGroup )

void NodeListForm::on_mNodeSearch_textChanged( const QString & )
{
on_mNodeGroup_currentIndexChanged( ui->mNodeGroup->currentText() );
on_mNodeGroup_currentIndexChanged( ui->mNodeGroup->currentIndex() );
}
4 changes: 2 additions & 2 deletions FugioApp/nodelistform.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ private slots:

void on_mNodeList_itemSelectionChanged();

void on_mNodeGroup_currentIndexChanged(const QString &arg1);

void on_mNodeSearch_textChanged(const QString &arg1);

void on_mNodeGroup_currentIndexChanged(int index);

private:
QStringList mNodeGroups;
Ui::NodeListForm *ui;
Expand Down

0 comments on commit c516c24

Please sign in to comment.