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:
parent
c6088b5417
commit
b997a4a7fe
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user