Rename port configuration slot
Adding a parameter with a default value to the existing on_XXX slot in a previous commit makes auto connect signal-slots by name to flag signal not found. So rename the slot name and add an explicit connection.
This commit is contained in:
parent
8d3f0c807f
commit
3cea0244d4
@ -97,8 +97,10 @@ PortsWindow::PortsWindow(PortGroupList *pgl, QWidget *parent)
|
|||||||
connect(plm->getPortModel(), SIGNAL(modelReset()),
|
connect(plm->getPortModel(), SIGNAL(modelReset()),
|
||||||
SLOT(when_portModel_reset()));
|
SLOT(when_portModel_reset()));
|
||||||
|
|
||||||
|
connect(actionPort_Configuration, SIGNAL(triggered()),
|
||||||
|
SLOT(when_actionPort_Configuration_triggered()));
|
||||||
connect(tvPortList, SIGNAL(activated(const QModelIndex&)),
|
connect(tvPortList, SIGNAL(activated(const QModelIndex&)),
|
||||||
SLOT(on_actionPort_Configuration_triggered(const QModelIndex&)));
|
SLOT(when_actionPort_Configuration_triggered(const QModelIndex&)));
|
||||||
connect(tvPortList->selectionModel(),
|
connect(tvPortList->selectionModel(),
|
||||||
SIGNAL(currentChanged(const QModelIndex&, const QModelIndex&)),
|
SIGNAL(currentChanged(const QModelIndex&, const QModelIndex&)),
|
||||||
this, SLOT(when_portView_currentChanged(const QModelIndex&,
|
this, SLOT(when_portView_currentChanged(const QModelIndex&,
|
||||||
@ -599,7 +601,7 @@ void PortsWindow::on_actionExclusive_Control_triggered(bool checked)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void PortsWindow::on_actionPort_Configuration_triggered(
|
void PortsWindow::when_actionPort_Configuration_triggered(
|
||||||
const QModelIndex &portIndex)
|
const QModelIndex &portIndex)
|
||||||
{
|
{
|
||||||
QModelIndex current = portIndex.isValid() ?
|
QModelIndex current = portIndex.isValid() ?
|
||||||
|
@ -80,7 +80,7 @@ private slots:
|
|||||||
void on_actionDisconnect_Port_Group_triggered();
|
void on_actionDisconnect_Port_Group_triggered();
|
||||||
|
|
||||||
void on_actionExclusive_Control_triggered(bool checked);
|
void on_actionExclusive_Control_triggered(bool checked);
|
||||||
void on_actionPort_Configuration_triggered(
|
void when_actionPort_Configuration_triggered(
|
||||||
const QModelIndex &portIndex = QModelIndex());
|
const QModelIndex &portIndex = QModelIndex());
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user