X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fgui%2FMainwindow.cxx;h=790c1a306bbba59020383a311c8b59acae5dfe8d;hp=412c42400f4170d06457edc400efebd70bd7b9ff;hb=26c4bd3156495d5c6d18e51b06c19e8c6eea62d0;hpb=e32adfb77bd16a36a4baae8b38c32fd94b61572e diff --git a/src/gui/Mainwindow.cxx b/src/gui/Mainwindow.cxx index 412c424..790c1a3 100644 --- a/src/gui/Mainwindow.cxx +++ b/src/gui/Mainwindow.cxx @@ -1,9 +1,20 @@ -#include "Mainwindow.h++" +#include "Mainwindow.hxx" #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace { @@ -75,7 +86,7 @@ void Mainwindow::populateSymbolInformation(const std::string& sym) { // Listing QTableWidget * t = new QTableWidget(); t->setColumnCount(3); - t->horizontalHeader()->setResizeMode(QHeaderView::ResizeToContents); + t->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents); curBin->for_each_instruction(sym, [&t](long add, std::string bytes, std::string mnemonic) { int row = t->rowCount(); std::stringstream s; @@ -97,8 +108,6 @@ void Mainwindow::populateSymbolInformation(const std::string& sym) { QGraphicsView * view = new QGraphicsView(scene); w->addTab(view, "CFG"); - - listWidget->addItem(sym.c_str()); stackedWidget->addWidget(w); }