further development on rewrite

This commit is contained in:
itsmattkc
2019-06-17 16:05:51 -07:00
parent 9afbe92574
commit a468b3727d
314 changed files with 1504 additions and 147 deletions
@@ -1,9 +1,11 @@
#include "projectexplorer.h"
ProjectExplorer::ProjectExplorer(QWidget *parent) :
QWidget(parent),
QStackedWidget(parent),
view_type_(TreeView)
{
tree_view_ = new QTreeView(this);
addWidget(tree_view_);
}
const ProjectExplorer::ViewType &ProjectExplorer::view_type()
+4 -2
View File
@@ -1,9 +1,10 @@
#ifndef PROJECTEXPLORER_H
#define PROJECTEXPLORER_H
#include <QWidget>
#include <QStackedWidget>
#include <QTreeView>
class ProjectExplorer : public QWidget
class ProjectExplorer : public QStackedWidget
{
public:
enum ViewType {
@@ -20,6 +21,7 @@ public:
private:
ViewType view_type_;
QTreeView* tree_view_;
};
#endif // PROJECTEXPLORER_H