various small code cleanups and improvements

Largely refactoring work to make the code somewhat nicer to work with.
This commit is contained in:
itsmattkc
2019-12-26 19:00:08 +11:00
parent 83077c939e
commit 61c60e00d6
87 changed files with 596 additions and 567 deletions
+8 -4
View File
@@ -25,8 +25,6 @@
#include <QLineEdit>
#include <QPushButton>
#include "project/projectviewtype.h"
/**
* @brief The ProjectToolbar class
*
@@ -41,8 +39,14 @@ class ProjectToolbar : public QWidget
public:
ProjectToolbar(QWidget* parent);
enum ViewType {
TreeView,
ListView,
IconView
};
public slots:
void SetView(olive::ProjectViewType type);
void SetView(ViewType type);
protected:
void changeEvent(QEvent *) override;
@@ -57,7 +61,7 @@ signals:
void SearchChanged(const QString&);
void ViewChanged(olive::ProjectViewType type);
void ViewChanged(ViewType type);
private:
void Retranslate();