Na tej stronie

Core::MessageManager Namespace

namespace Core::MessageManager

Przestrzeń nazw MessageManager służy do publikowania komunikatów w panelu „ General Messages ”. Więcej...

Header: #include <coreplugin/messagemanager.h>

Funkcje

void writeDisrupting(const QString &message)
void writeDisrupting(const QStringList &messages)
void writeFlashing(const QString &message)
void writeFlashing(const QStringList &messages)
void writeSilently(const QString &message)
void writeSilently(const QStringList &messages)

Szczegółowy opis

Dokumentacja funkcji

void MessageManager::writeDisrupting(const QString &message)

Zapisuje adres message w panelu General Messages i przenosi ten panel na wierzch.

Może to zakłócić pracę użytkownika, dlatego należy używać tej funkcji wyłącznie w bezpośredniej odpowiedzi na działanie użytkownika, takie jak wyraźne uruchomienie narzędzia.

Zobacz także: writeSilently() oraz writeFlashing().

void MessageManager::writeDisrupting(const QStringList &messages)

Ta funkcja stanowi przeciążenie funkcji ` MessageManager::writeDisrupting()`.

void MessageManager::writeFlashing(const QString &message)

Zapisuje adres message w panelu General Messages i powoduje miganie przycisku panelu wyjściowego.

Powiadamia to użytkownika, że wydarzyło się coś ważnego, co może wymagać jego uwagi. Należy używać tej funkcji oszczędnie, ponieważ ciągłe miganie przycisku jest irytujące, zwłaszcza jeśli użytkownik nie jest w stanie samodzielnie rozwiązać danego problemu.

Zobacz także: ` writeSilently()` oraz ` writeDisrupting()`.

void MessageManager::writeFlashing(const QStringList &messages)

Ta funkcja nadpisuje funkcję ` MessageManager::writeFlashing()`.

void MessageManager::writeSilently(const QString &message)

Zapisuje plik „ message ” w okienku „ General Messages ” bez konieczności wykonywania żadnych dalszych czynności.

Jest to preferowana metoda wysyłania komunikatów, ponieważ nie przeszkadza użytkownikowi.

Zobacz także: ` writeFlashing()` oraz ` writeDisrupting()`.

void MessageManager::writeSilently(const QStringList &messages)

Ta funkcja stanowi przeciążenie funkcji ` MessageManager::writeSilently()`.

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.