mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
refs #472 Removed static_cast<int> for enums in blackcore, no longer needed.
This commit is contained in:
@@ -133,15 +133,12 @@ namespace BlackGui
|
||||
}
|
||||
}
|
||||
|
||||
void CMainKeypadAreaComponent::ps_connectionStatusChanged(uint from, uint to)
|
||||
void CMainKeypadAreaComponent::ps_connectionStatusChanged(BlackCore::INetwork::ConnectionStatus from, BlackCore::INetwork::ConnectionStatus to)
|
||||
{
|
||||
INetwork::ConnectionStatus statusFrom = static_cast<INetwork::ConnectionStatus>(from);
|
||||
INetwork::ConnectionStatus statusTo = static_cast<INetwork::ConnectionStatus>(to);
|
||||
|
||||
Q_UNUSED(statusFrom);
|
||||
Q_UNUSED(from);
|
||||
|
||||
// Connected button
|
||||
if (statusTo == INetwork::Connected)
|
||||
if (to == INetwork::Connected)
|
||||
{
|
||||
this->ui->pb_Connect->setText("Disconnect");
|
||||
this->ui->pb_Connect->setStyleSheet("background-color: green");
|
||||
|
||||
Reference in New Issue
Block a user