KTextAddons

textautogenerateselectedmessagebackgroundanimation.h
1/*
2 SPDX-FileCopyrightText: 2025 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8#include "textautogeneratetext_private_export.h"
9#include <QColor>
10#include <QObject>
11#include <QPersistentModelIndex>
12namespace TextAutogenerateText
13{
14class TEXTAUTOGENERATETEXT_TESTS_EXPORT TextAutogenerateSelectedMessageBackgroundAnimation : public QObject
15{
16 Q_OBJECT
17 Q_PROPERTY(QColor backgroundColor READ backgroundColor WRITE setBackgroundColor NOTIFY backgroundColorChanged)
18public:
19 explicit TextAutogenerateSelectedMessageBackgroundAnimation(QObject *parent = nullptr);
20 ~TextAutogenerateSelectedMessageBackgroundAnimation() override;
21
22 [[nodiscard]] QColor backgroundColor() const;
23 void setBackgroundColor(const QColor &newBackgroundColor);
24
25 void start();
26
27 [[nodiscard]] QPersistentModelIndex modelIndex() const;
28 void setModelIndex(const QPersistentModelIndex &newModelIndex);
29
30Q_SIGNALS:
31 void backgroundColorChanged();
32 void animationFinished();
33
34private:
35 QColor m_backgroundColor;
36 QPersistentModelIndex mModelIndex;
37};
38}
Q_SCRIPTABLE Q_NOREPLY void start()
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri May 2 2025 12:06:03 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.