Commit 023e8f1e authored by Edric Milaret's avatar Edric Milaret

fix some compilation warning

Refs #76262

Change-Id: Ife5715b39f03abec49bda2e2f2a45e5ea3895368
parent d8528fa2
...@@ -165,6 +165,7 @@ CallWidget::checkRegistrationState(Account *account, ...@@ -165,6 +165,7 @@ CallWidget::checkRegistrationState(Account *account,
p.setBrush(Qt::yellow); p.setBrush(Qt::yellow);
break; break;
case Account::RegistrationState::READY: case Account::RegistrationState::READY:
{
p.setBrush(Qt::green); p.setBrush(Qt::green);
auto a_count = AccountModel::instance()->rowCount(); auto a_count = AccountModel::instance()->rowCount();
for (int i = 0; i < a_count; ++i) { for (int i = 0; i < a_count; ++i) {
...@@ -178,6 +179,9 @@ CallWidget::checkRegistrationState(Account *account, ...@@ -178,6 +179,9 @@ CallWidget::checkRegistrationState(Account *account,
return; return;
} }
} }
}
break;
default:
break; break;
} }
p.drawEllipse(3, 3, 16, 16); p.drawEllipse(3, 3, 16, 16);
......
...@@ -385,7 +385,7 @@ ...@@ -385,7 +385,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="label_2"> <widget class="QLabel" name="stateLabel">
<property name="text"> <property name="text">
<string>State:</string> <string>State:</string>
</property> </property>
......
...@@ -121,6 +121,7 @@ InstantMessagingWidget::keyPressEvent(QKeyEvent *event) ...@@ -121,6 +121,7 @@ InstantMessagingWidget::keyPressEvent(QKeyEvent *event)
void void
InstantMessagingWidget::showEvent(QShowEvent *event) InstantMessagingWidget::showEvent(QShowEvent *event)
{ {
Q_UNUSED(event)
ui->messageInput->setFocus(); ui->messageInput->setFocus();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment