mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
refs #768, allow to clear log component
This commit is contained in:
@@ -75,6 +75,13 @@ namespace BlackGui
|
||||
ui->form_StatusMessage->setVisible(details);
|
||||
}
|
||||
|
||||
void CLogComponent::clear()
|
||||
{
|
||||
ui->tvp_StatusMessages->clear();
|
||||
ui->form_StatusMessage->clear();
|
||||
ui->tep_StatusPageConsole->clear();
|
||||
}
|
||||
|
||||
void CLogComponent::appendStatusMessageToConsole(const CStatusMessage &statusMessage)
|
||||
{
|
||||
if (statusMessage.isEmpty()) return;
|
||||
|
||||
@@ -71,6 +71,9 @@ namespace BlackGui
|
||||
//! Show log details
|
||||
void showDetails(bool details);
|
||||
|
||||
//! Clear
|
||||
void clear();
|
||||
|
||||
signals:
|
||||
//! Make me visible
|
||||
void requestAttention();
|
||||
@@ -103,7 +106,6 @@ namespace BlackGui
|
||||
|
||||
private:
|
||||
QAction *m_action = nullptr;
|
||||
|
||||
};
|
||||
};
|
||||
} // ns
|
||||
|
||||
Reference in New Issue
Block a user