cutter/src/widgets/GraphWidget.h
karliss 552021c38d
Move graph header to GraphWidget. (#1628)
* prevents layout problems
* fix header change when doubleclicking in unsynchronized function
2019-06-29 09:28:35 +03:00

39 lines
726 B
C++

#ifndef GRAPHWIDGET_H
#define GRAPHWIDGET_H
#include "MemoryDockWidget.h"
#include <QLineEdit>
class MainWindow;
class DisassemblerGraphView;
class GraphWidget : public MemoryDockWidget
{
Q_OBJECT
public:
explicit GraphWidget(MainWindow *main, QAction *action = nullptr);
~GraphWidget() override {}
DisassemblerGraphView *getGraphView() const;
static QString getWidgetType();
signals:
void graphClosed();
protected:
QWidget *widgetToFocusOnRaise() override;
private:
void closeEvent(QCloseEvent *event) override;
QString getWindowTitle() const override;
void prepareHeader();
DisassemblerGraphView *graphView;
QLineEdit *header = nullptr;
};
#endif // GRAPHWIDGET_H