5#ifndef DPAGEINDICATOR_H
6#define DPAGEINDICATOR_H
8#include <dtkwidget_global.h>
13DWIDGET_BEGIN_NAMESPACE
15class DPageIndicatorPrivate;
16class LIBDTKWIDGETSHARED_EXPORT
DPageIndicator :
public QWidget,
public DTK_CORE_NAMESPACE::DObject
21 Q_PROPERTY(QColor pointColor READ pointColor WRITE setPointColor DESIGNABLE
true)
22 Q_PROPERTY(QColor secondaryPointColor READ secondaryPointColor WRITE setSecondaryPointColor DESIGNABLE
true)
23 Q_PROPERTY(
int pointRadius READ pointRadius WRITE setPointRadius)
24 Q_PROPERTY(
int secondaryPointRadius READ secondaryPointRadius WRITE setSecondaryPointRadius)
25 Q_PROPERTY(
int pageCount READ pageCount WRITE setPageCount)
26 Q_PROPERTY(
int currentPage READ currentPageIndex WRITE setCurrentPage)
27 Q_PROPERTY(
int pointDistance READ pointDistance WRITE setPointDistance)
32 int pageCount()
const;
33 void setPageCount(
const int count);
37 void setCurrentPage(
const int index);
38 int currentPageIndex()
const;
40 QColor pointColor()
const;
41 void setPointColor(QColor color);
43 QColor secondaryPointColor()
const;
44 void setSecondaryPointColor(QColor color);
46 int pointRadius()
const;
47 void setPointRadius(
int size);
49 int secondaryPointRadius()
const;
50 void setSecondaryPointRadius(
int size);
52 int pointDistance()
const;
53 void setPointDistance(
int distance);
56 void paintEvent(QPaintEvent *e)
override;
The DPageIndicator class provides indicator of which page is currently showing.
Definition: dpageindicator.h:17