KWidgetsAddons

kpixmapsequencewidget.h
1 /*
2  SPDX-FileCopyrightText: 2009 Sebastian Trueg <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6 
7 #ifndef _K_PIXMAPSEQUENCE_WIDGET_H_
8 #define _K_PIXMAPSEQUENCE_WIDGET_H_
9 
10 #include <QWidget>
11 
12 #include <kwidgetsaddons_export.h>
13 
14 class KPixmapSequence;
15 
30 class KWIDGETSADDONS_EXPORT KPixmapSequenceWidget : public QWidget
31 {
32  Q_OBJECT
33  Q_PROPERTY(int interval READ interval WRITE setInterval)
34 
35 public:
39  explicit KPixmapSequenceWidget(QWidget *parent = nullptr);
40  KPixmapSequenceWidget(const KPixmapSequence &seq, QWidget *parent = nullptr);
41 
45  ~KPixmapSequenceWidget() override;
46 
52  KPixmapSequence sequence() const;
53 
59  int interval() const;
60 
64  QSize sizeHint() const override;
65 
66 public Q_SLOTS:
70  void setSequence(const KPixmapSequence &seq);
71 
76  void setInterval(int msecs);
77 
78 private:
79  class Private;
80  Private *const d;
81 };
82 
83 #endif
Loads and gives access to the frames of a typical multi-row pixmap as often used for spinners...
A simple widget showing a fixed size pixmap sequence.
Q_PROPERTY(...)
virtual QSize sizeHint() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Aug 4 2020 22:43:23 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.