KTextAddons

texttospeechsliderwidget.h
1/*
2 SPDX-FileCopyrightText: 2022-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8#include "textedittexttospeech_private_export.h"
9#include <QWidget>
10class QLabel;
11class QSlider;
12namespace TextEditTextToSpeech
13{
14class TEXTEDITTEXTTOSPEECH_TESTS_EXPORT TextToSpeechSliderWidget : public QWidget
15{
16 Q_OBJECT
17public:
18 explicit TextToSpeechSliderWidget(const QString &labelInfo, QWidget *parent = nullptr);
19 ~TextToSpeechSliderWidget() override;
20
21 void setValue(int value);
22 void setRange(int min, int max);
23 [[nodiscard]] int value() const;
24
25Q_SIGNALS:
26 void valueChanged(int value);
27
28private:
29 TEXTEDITTEXTTOSPEECH_NO_EXPORT void slotValueChanged(int value);
30 QString mLabelInfo;
31 QLabel *const mLabel;
32 QSlider *const mSlider;
33};
34}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:29:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.