Focus text in text entry of overlay text message

This commit is contained in:
Klaus Basan
2018-12-09 19:41:09 +01:00
parent 9525e0dbe5
commit 9b06a159f2
3 changed files with 10 additions and 0 deletions

View File

@@ -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);

View File

@@ -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();