mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 02:35:38 +08:00
Ref T225, utility function, messages can be directly shown as overlay
This commit is contained in:
@@ -36,6 +36,13 @@ namespace BlackGui
|
|||||||
return CStatusMessageList();
|
return CStatusMessageList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CStatusMessageList CForm::validateAsOverlayMessage(bool withNestedObjects, bool appendOldMessages, int timeOutMs)
|
||||||
|
{
|
||||||
|
const CStatusMessageList msgs = this->validate(withNestedObjects);
|
||||||
|
this->showOverlayMessages(msgs, appendOldMessages, timeOutMs);
|
||||||
|
return msgs;
|
||||||
|
}
|
||||||
|
|
||||||
void CForm::jsonPasted(const QString &json)
|
void CForm::jsonPasted(const QString &json)
|
||||||
{
|
{
|
||||||
Q_UNUSED(json);
|
Q_UNUSED(json);
|
||||||
|
|||||||
@@ -48,6 +48,10 @@ namespace BlackGui
|
|||||||
//! Validate, empty list means OK
|
//! Validate, empty list means OK
|
||||||
virtual BlackMisc::CStatusMessageList validate(bool withNestedObjects = true) const;
|
virtual BlackMisc::CStatusMessageList validate(bool withNestedObjects = true) const;
|
||||||
|
|
||||||
|
//! Validate as overlay message
|
||||||
|
//! \note uses CForm::validate and displays the messages as overlay messages
|
||||||
|
BlackMisc::CStatusMessageList validateAsOverlayMessage(bool withNestedObjects = true, bool appendOldMessages = false, int timeOutMs = -1);
|
||||||
|
|
||||||
//! Is read only?
|
//! Is read only?
|
||||||
bool isReadOnly() const { return m_readOnly; }
|
bool isReadOnly() const { return m_readOnly; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user