KTextAddons
7#include "texttospeechsliderwidget.h"
13using namespace TextEditTextToSpeech;
14TextToSpeechSliderWidget::TextToSpeechSliderWidget(
const QString &labelInfo,
QWidget *parent)
16 , mLabelInfo(labelInfo)
21 mainLayout->setContentsMargins({});
22 mainLayout->setObjectName(QStringLiteral(
"mainLayout"));
23 mSlider->setObjectName(QStringLiteral(
"mSlider"));
24 mLabel->setObjectName(QStringLiteral(
"mLabel"));
26 mainLayout->addWidget(mSlider);
27 mainLayout->addWidget(mLabel);
30 mLabel->setMinimumWidth(f.horizontalAdvance(QStringLiteral(
"MMMM")));
34TextToSpeechSliderWidget::~TextToSpeechSliderWidget() =
default;
36void TextToSpeechSliderWidget::setValue(
int value)
38 mSlider->setValue(value);
39 slotValueChanged(value);
42void TextToSpeechSliderWidget::setRange(
int min,
int max)
44 mSlider->setRange(min, max);
47int TextToSpeechSliderWidget::value()
const
49 return mSlider->value();
52void TextToSpeechSliderWidget::slotValueChanged(
int value)
54 Q_EMIT valueChanged(value);
58#include "moc_texttospeechsliderwidget.cpp"
void valueChanged(int value)
QString number(double n, char format, int precision)
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:24 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.