forked from qt-creator/qt-creator
MessageManager: Allow messages from non-UI threads
This relieves the caller of the burden of dispatching the call to the UI thread. Change-Id: Ic6455fb7f393d0e21c7e527c693ebf2441f0c028 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -57,18 +57,21 @@ public:
|
||||
|
||||
Q_DECLARE_FLAGS(PrintToOutputPaneFlags, PrintToOutputPaneFlag)
|
||||
|
||||
static void showOutputPane(Core::MessageManager::PrintToOutputPaneFlags flags = NoModeSwitch);
|
||||
static void showOutputPane(PrintToOutputPaneFlags flags = NoModeSwitch);
|
||||
|
||||
static void setFont(const QFont &font);
|
||||
static void setWheelZoomEnabled(bool enabled);
|
||||
|
||||
public slots:
|
||||
static void write(const QString &text,
|
||||
Core::MessageManager::PrintToOutputPaneFlags flags = NoModeSwitch);
|
||||
static void writeMessages(const QStringList &messages,
|
||||
PrintToOutputPaneFlags flags = NoModeSwitch);
|
||||
static void write(const QString &text, PrintToOutputPaneFlags flags = NoModeSwitch);
|
||||
|
||||
private:
|
||||
MessageManager();
|
||||
~MessageManager() override;
|
||||
|
||||
static void doWrite(const QString &text, PrintToOutputPaneFlags flags);
|
||||
|
||||
static void init();
|
||||
friend class Core::Internal::MainWindow;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user