mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 08:45:36 +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);
|
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)
|
void CLogComponent::appendStatusMessageToConsole(const CStatusMessage &statusMessage)
|
||||||
{
|
{
|
||||||
if (statusMessage.isEmpty()) return;
|
if (statusMessage.isEmpty()) return;
|
||||||
|
|||||||
@@ -71,6 +71,9 @@ namespace BlackGui
|
|||||||
//! Show log details
|
//! Show log details
|
||||||
void showDetails(bool details);
|
void showDetails(bool details);
|
||||||
|
|
||||||
|
//! Clear
|
||||||
|
void clear();
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
//! Make me visible
|
//! Make me visible
|
||||||
void requestAttention();
|
void requestAttention();
|
||||||
@@ -103,7 +106,6 @@ namespace BlackGui
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
QAction *m_action = nullptr;
|
QAction *m_action = nullptr;
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
} // ns
|
} // ns
|
||||||
|
|||||||
Reference in New Issue
Block a user