change: change code style to Linux style except indent.
This commit is contained in:
@@ -27,7 +27,8 @@
|
||||
|
||||
#include "common/define.h"
|
||||
|
||||
namespace olive {
|
||||
namespace olive
|
||||
{
|
||||
|
||||
/**
|
||||
* @brief The ProjectToolbar class
|
||||
@@ -37,49 +38,44 @@ namespace olive {
|
||||
*
|
||||
* This object's signals can be connected to various functions in the application for better user experience.
|
||||
*/
|
||||
class ProjectToolbar : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
class ProjectToolbar : public QWidget {
|
||||
Q_OBJECT
|
||||
public:
|
||||
ProjectToolbar(QWidget* parent);
|
||||
ProjectToolbar(QWidget *parent);
|
||||
|
||||
enum ViewType {
|
||||
TreeView,
|
||||
ListView,
|
||||
IconView
|
||||
};
|
||||
enum ViewType { TreeView, ListView, IconView };
|
||||
|
||||
public slots:
|
||||
void SetView(ViewType type);
|
||||
void SetView(ViewType type);
|
||||
|
||||
protected:
|
||||
void changeEvent(QEvent *) override;
|
||||
void changeEvent(QEvent *) override;
|
||||
|
||||
signals:
|
||||
void NewClicked();
|
||||
void OpenClicked();
|
||||
void SaveClicked();
|
||||
void NewClicked();
|
||||
void OpenClicked();
|
||||
void SaveClicked();
|
||||
|
||||
void SearchChanged(const QString&);
|
||||
void SearchChanged(const QString &);
|
||||
|
||||
void ViewChanged(ViewType type);
|
||||
void ViewChanged(ViewType type);
|
||||
|
||||
private:
|
||||
void Retranslate();
|
||||
void UpdateIcons();
|
||||
void Retranslate();
|
||||
void UpdateIcons();
|
||||
|
||||
QPushButton* new_button_;
|
||||
QPushButton* open_button_;
|
||||
QPushButton* save_button_;
|
||||
QPushButton *new_button_;
|
||||
QPushButton *open_button_;
|
||||
QPushButton *save_button_;
|
||||
|
||||
QLineEdit* search_field_;
|
||||
QLineEdit *search_field_;
|
||||
|
||||
QPushButton* tree_button_;
|
||||
QPushButton* list_button_;
|
||||
QPushButton* icon_button_;
|
||||
QPushButton *tree_button_;
|
||||
QPushButton *list_button_;
|
||||
QPushButton *icon_button_;
|
||||
|
||||
private slots:
|
||||
void ViewButtonClicked();
|
||||
void ViewButtonClicked();
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user