Krita Source Code Documentation
Loading...
Searching...
No Matches
TabSizeModel.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2024 Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#ifndef TABSIZEMODEL_H
7#define TABSIZEMODEL_H
8
9#include <QObject>
10#include <KoSvgText.h>
11#include <lager/state.hpp>
12#include <lager/cursor.hpp>
13#include <lager/extra/qt.hpp>
14
15#include <kritaflake_export.h>
16
17class KRITAFLAKE_EXPORT TabSizeModel : public QObject
18{
19 Q_OBJECT
20public:
21 explicit TabSizeModel(lager::cursor<KoSvgText::TabSizeInfo> _data = lager::make_state(KoSvgText::TabSizeInfo(), lager::automatic_tag{}));
22
33 Q_ENUM(TabSizeType)
34
35 lager::cursor<KoSvgText::TabSizeInfo> data;
36
37 LAGER_QT_CURSOR(qreal, value);
38 LAGER_QT_CURSOR(TabSizeType, unit);
39
40};
41
42#endif // TABSIZEMODEL_H
float value(const T *src, size_t ch)