Krita Source Code Documentation
Loading...
Searching...
No Matches
KoLineStyleSelector.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2007 Jan Hambrecht <jaham@gmx.net>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef _KOLINESTYLESELECTOR_H_
8#define _KOLINESTYLESELECTOR_H_
9
10#include "kritawidgets_export.h"
11#include <QComboBox>
12
16class KRITAWIDGETS_EXPORT KoLineStyleSelector : public QComboBox
17{
18 Q_OBJECT
19public:
20 explicit KoLineStyleSelector(QWidget *parent = 0);
21 ~KoLineStyleSelector() override;
22
31 bool addCustomStyle(const QVector<qreal> &style);
32
42 void setLineStyle(Qt::PenStyle style, const QVector<qreal> &dashes = QVector<qreal>());
43
45 Qt::PenStyle lineStyle() const;
47 QVector<qreal> lineDashes() const;
48
49protected:
50 void paintEvent(QPaintEvent *pe) override;
51
52private:
53 class Private;
54 Private * const d;
55};
56
57#endif // _KOLINESTYLESELECTOR_H_