change: change code style to Linux style except indent.

This commit is contained in:
Mike Solar
2025-08-03 03:09:40 +08:00
parent 65ab76edc8
commit 74f73ab3be
789 changed files with 77113 additions and 68888 deletions
+18 -19
View File
@@ -25,49 +25,48 @@
#include "viewerdisplay.h"
namespace olive {
class ViewerWindow : public QWidget
namespace olive
{
class ViewerWindow : public QWidget {
public:
ViewerWindow(QWidget* parent = nullptr);
ViewerWindow(QWidget *parent = nullptr);
ViewerDisplayWidget* display_widget() const;
ViewerDisplayWidget *display_widget() const;
/**
/**
* @brief Used to adjust resulting picture to be the right aspect ratio
*
* Equivalent to calling SetResolution and SetPixelAspectRatio, just slightly faster since we
* only calculate the matrix once rather than twice.
*/
void SetVideoParams(const VideoParams &params);
void SetVideoParams(const VideoParams &params);
/**
/**
* @brief Used to adjust resulting picture to be the right aspect ratio
*/
void SetResolution(int width, int height);
void SetResolution(int width, int height);
/**
/**
* @brief Used to adjust resulting picture to be the right aspect ratio
*/
void SetPixelAspectRatio(const rational& pixel_aspect);
void SetPixelAspectRatio(const rational &pixel_aspect);
protected:
virtual void keyPressEvent(QKeyEvent* e) override;
virtual void keyPressEvent(QKeyEvent *e) override;
virtual void closeEvent(QCloseEvent* e) override;
virtual void closeEvent(QCloseEvent *e) override;
private:
void UpdateMatrix();
void UpdateMatrix();
int width_;
int width_;
int height_;
int height_;
ViewerDisplayWidget* display_widget_;
rational pixel_aspect_;
ViewerDisplayWidget *display_widget_;
rational pixel_aspect_;
};
}