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
+19 -19
View File
@@ -27,43 +27,43 @@
#include "seekablewidget.h"
#include "render/playbackcache.h"
namespace olive {
class TimeRuler : public SeekableWidget
namespace olive
{
Q_OBJECT
class TimeRuler : public SeekableWidget {
Q_OBJECT
public:
TimeRuler(bool text_visible = true, bool cache_status_visible = false, QWidget* parent = nullptr);
TimeRuler(bool text_visible = true, bool cache_status_visible = false,
QWidget *parent = nullptr);
void SetCenteredText(bool c);
void SetCenteredText(bool c);
void SetPlaybackCache(PlaybackCache* cache);
void SetPlaybackCache(PlaybackCache *cache);
protected:
virtual void drawForeground(QPainter *painter, const QRectF &rect) override;
virtual void drawForeground(QPainter *painter, const QRectF &rect) override;
virtual void TimebaseChangedEvent(const rational& tb) override;
virtual void TimebaseChangedEvent(const rational &tb) override;
protected slots:
virtual bool ShowContextMenu(const QPoint &p) override;
virtual bool ShowContextMenu(const QPoint &p) override;
private:
void UpdateHeight();
void UpdateHeight();
int CacheStatusHeight() const;
int CacheStatusHeight() const;
int minimum_gap_between_lines_;
int minimum_gap_between_lines_;
bool text_visible_;
bool text_visible_;
bool centered_text_;
bool centered_text_;
double timebase_flipped_dbl_;
double timebase_flipped_dbl_;
bool show_cache_status_;
PlaybackCache* playback_cache_;
bool show_cache_status_;
PlaybackCache *playback_cache_;
};
}