change: change code style to Linux style except indent.
This commit is contained in:
@@ -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 ¶ms);
|
||||
void SetVideoParams(const VideoParams ¶ms);
|
||||
|
||||
/**
|
||||
/**
|
||||
* @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_;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user