Change from QListWidget to QTreeWidget
[frida/frida.git] / src / gui / Mainwindow.hxx
index ba0d8b4944529138ff78fbf2e9b995133c677dab..a3bd4bdfa88ff354c0ee09a557ceb4d6d8c668c3 100644 (file)
@@ -7,7 +7,7 @@
 #include <QTextEdit>
 #include <QPushButton>
 #include <QMainWindow>
-#include <QListWidget>
+#include <QTreeWidget>
 #include <QStackedWidget>
 
 #include <log4cxx/logger.h>
@@ -37,7 +37,7 @@ private:
        QMenu *fileMenu;
 
        QTabWidget * tabwidget;
-       QListWidget * listWidget;
+       QTreeWidget * listWidget;
        QStackedWidget * stackedWidget;
        QDockWidget * dockWidget;
        ScriptingDock * scripting;
@@ -48,8 +48,8 @@ private:
 
        std::map<uint64_t, BasicBlockWidget*> blocks;
        std::map<uint64_t, Function*> functions;
-       std::map<QListWidgetItem*, FunctionWidget*> objects_list;
-       std::map<uint64_t, QListWidgetItem*> objects_list_by_address;
+       std::map<QTreeWidgetItem*, FunctionWidget*> objects_list;
+       std::map<uint64_t, QTreeWidgetItem*> objects_list_by_address;
 
        InformationManager* manager;
        log4cxx::LoggerPtr logger;
@@ -58,7 +58,7 @@ private Q_SLOTS:
        void quit();
        void open();
        void save();
-       void switchMainPlane(int);
+       void switchMainPlane(QTreeWidgetItem* item);
        void showListContextMenu(const QPoint&);
        void requestNewFunction();
        void renameFunction(Function* function);