cutter/src/widgets/BacktraceWidget.h
karliss 3545f059f1
Rewrite layout management code (#2172)
* Use QDockWidget::toggleViewAction instead of custom solution.
* Improve new dock placement.
2020-05-22 14:49:34 +03:00

36 lines
691 B
C++

#pragma once
#include <QJsonObject>
#include <memory>
#include <QStandardItem>
#include <QTableView>
#include "core/Cutter.h"
#include "CutterDockWidget.h"
class MainWindow;
namespace Ui {
class BacktraceWidget;
}
class BacktraceWidget : public CutterDockWidget
{
Q_OBJECT
public:
explicit BacktraceWidget(MainWindow *main);
~BacktraceWidget();
private slots:
void updateContents();
void setBacktraceGrid();
void fontsUpdatedSlot();
private:
std::unique_ptr<Ui::BacktraceWidget> ui;
QStandardItemModel *modelBacktrace = new QStandardItemModel(1, 5, this);
QTableView *viewBacktrace = new QTableView(this);
RefreshDeferrer *refreshDeferrer;
};