1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-29 14:52:12 +01:00

Make connect button use onclicked() signal rather than onpressed()

This commit is contained in:
David Ankers 2012-07-30 21:58:36 +10:00
parent c6088b5417
commit b997a4a7fe
2 changed files with 4 additions and 4 deletions

View File

@ -81,7 +81,7 @@ ConnectionManager::ConnectionManager(Internal::MainWindow *mainWindow, QTabWidge
// modeStack->insertCornerWidget(modeStack->cornerWidgetCount()-1, this);
modeStack->setCornerWidget(this, Qt::TopRightCorner);
QObject::connect(m_connectBtn, SIGNAL(pressed()), this, SLOT(onConnectPressed()));
QObject::connect(m_connectBtn, SIGNAL(clicked()), this, SLOT(onConnectClicked()));
}
ConnectionManager::~ConnectionManager()
@ -224,9 +224,9 @@ void ConnectionManager::onConnectionDestroyed(QObject *obj) // Pip
}
/**
* Slot called when the user pressed the connect/disconnect button
* Slot called when the user clicks the connect/disconnect button
*/
void ConnectionManager::onConnectPressed()
void ConnectionManager::onConnectClicked()
{
// Check if we have a ioDev already created:
if (!m_ioDev)

View File

@ -93,7 +93,7 @@ private slots:
void objectAdded(QObject *obj);
void aboutToRemoveObject(QObject *obj);
void onConnectPressed();
void onConnectClicked();
void devChanged(IConnection *connection);
// void onConnectionClosed(QObject *obj);