Krita Source Code Documentation
Loading...
Searching...
No Matches
KoMarkerSelector.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2011 Thorsten Zachmann <zachmann@kde.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef KOMARKERSELECTOR_H
8#define KOMARKERSELECTOR_H
9
10#include "kritawidgets_export.h"
11
12#include <KoFlake.h>
13#include <QComboBox>
14
15class KoMarker;
16
17
18class KRITAWIDGETS_EXPORT KoMarkerSelector : public QComboBox
19{
20 Q_OBJECT
21public:
22 explicit KoMarkerSelector(KoFlake::MarkerPosition position, QWidget *parent = 0);
23 ~KoMarkerSelector() override;
24
25 // set the current marker style
26 void setMarker(KoMarker *marker);
27 // return the current marker style
28 KoMarker *marker() const;
29
31 QVariant itemData(int index, int role = Qt::UserRole) const;
32
36 void updateMarkers(const QList<KoMarker*> markers);
37
38protected:
39 void paintEvent(QPaintEvent *pe) override;
40
41private:
42 class Private;
43 Private * const d;
44};
45
46#endif /* KOMARKERSELECTOR_H */
Private *const d
MarkerPosition
Definition KoFlake.h:41