diff options
| author | Serg Podtynnyi <[email protected]> | 2023-02-04 00:14:53 +0700 |
|---|---|---|
| committer | Serg Podtynnyi <[email protected]> | 2023-02-05 12:45:38 +0700 |
| commit | 38c34eeca315c7be58e65d4d3fb72aaf7b866719 (patch) | |
| tree | 886e53f20c9c43edc3eb7fe04789716a9bc98ebe /src/panels/information/pixmapviewer.h | |
| parent | ffff8af851e3a386c44438337779d0ce7ca98a61 (diff) | |
Add clang-format and format code as in Frameworks
Diffstat (limited to 'src/panels/information/pixmapviewer.h')
| -rw-r--r-- | src/panels/information/pixmapviewer.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/panels/information/pixmapviewer.h b/src/panels/information/pixmapviewer.h index 6e0fa3e67..32c06fe15 100644 --- a/src/panels/information/pixmapviewer.h +++ b/src/panels/information/pixmapviewer.h @@ -26,8 +26,7 @@ class PixmapViewer : public QWidget Q_OBJECT public: - enum Transition - { + enum Transition { /** No transition is done when the pixmap is changed. */ NoTransition, @@ -47,21 +46,20 @@ public: SizeTransition }; - explicit PixmapViewer(QWidget* parent, - Transition transition = DefaultTransition); + explicit PixmapViewer(QWidget *parent, Transition transition = DefaultTransition); ~PixmapViewer() override; - void setPixmap(const QPixmap& pixmap); + void setPixmap(const QPixmap &pixmap); QPixmap pixmap() const; /** * Sets the size hint to \a size and triggers a relayout * of the parent widget. Per default no size hint is given. */ - void setSizeHint(const QSize& size); + void setSizeHint(const QSize &size); QSize sizeHint() const override; - void setAnimatedImageFileName(const QString& fileName); + void setAnimatedImageFileName(const QString &fileName); QString animatedImageFileName() const; void stopAnimatedImage(); @@ -72,7 +70,7 @@ public: static bool isAnimatedMimeType(const QString &mimeType); protected: - void paintEvent(QPaintEvent* event) override; + void paintEvent(QPaintEvent *event) override; private Q_SLOTS: void checkPendingPixmaps(); @@ -81,7 +79,7 @@ private Q_SLOTS: private: QPixmap m_pixmap; QPixmap m_oldPixmap; - QMovie* m_animatedImage; + QMovie *m_animatedImage; QQueue<QPixmap> m_pendingPixmaps; QTimeLine m_animation; Transition m_transition; @@ -95,5 +93,4 @@ inline QPixmap PixmapViewer::pixmap() const return m_pixmap; } - #endif |
