mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-15 09:15:34 +08:00
Focus text in text entry of overlay text message
This commit is contained in:
@@ -684,6 +684,12 @@ namespace BlackGui
|
||||
ui->lep_textMessages->setVisible(show);
|
||||
}
|
||||
|
||||
void CTextMessageComponent::focusTextEntry()
|
||||
{
|
||||
if (!ui->lep_textMessages->isVisible()) { return; }
|
||||
ui->lep_textMessages->setFocus();
|
||||
}
|
||||
|
||||
void CTextMessageComponent::removeAllMessagesTab()
|
||||
{
|
||||
ui->tw_TextMessages->removeTab(0);
|
||||
|
||||
@@ -75,6 +75,9 @@ namespace BlackGui
|
||||
//! Show an text entry field
|
||||
void showTextMessageEntry(bool show);
|
||||
|
||||
//! Focus the text entry field
|
||||
void focusTextEntry();
|
||||
|
||||
//! Remove the all tab, the operation cannot be undone
|
||||
void removeAllMessagesTab();
|
||||
|
||||
|
||||
@@ -256,6 +256,7 @@ namespace BlackGui
|
||||
this->setHeader("Text message");
|
||||
this->showKill(false);
|
||||
this->display();
|
||||
ui->comp_OverlayTextMessage->focusTextEntry();
|
||||
}
|
||||
|
||||
void COverlayMessages::showOverlayImage(const CPixmap &image, int timeOutMs)
|
||||
|
||||
Reference in New Issue
Block a user