File indexing completed on 2024-05-12 05:17:26

0001 /*
0002     SPDX-FileCopyrightText: 2019 Volker Krause <vkrause@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #ifndef CONSOLEOUTPUTWIDGET_H
0008 #define CONSOLEOUTPUTWIDGET_H
0009 
0010 #include <QWidget>
0011 
0012 #include <memory>
0013 
0014 namespace Ui {
0015 class ConsoleOutputWidget;
0016 }
0017 class ConsoleOutputModel;
0018 
0019 class ConsoleOutputWidget : public QWidget
0020 {
0021     Q_OBJECT
0022 public:
0023     explicit ConsoleOutputWidget(QWidget *parent = nullptr);
0024     ~ConsoleOutputWidget();
0025 
0026     void clear();
0027 
0028 Q_SIGNALS:
0029     void navigateToSource(const QString &file, int line);
0030 
0031 private:
0032     std::unique_ptr<Ui::ConsoleOutputWidget> ui;
0033     ConsoleOutputModel *m_model = nullptr;
0034 };
0035 
0036 #endif // CONSOLEOUTPUTWIDGET_H