Mailcommon
soundtestwidget.cpp
39 connect(m_urlRequester, &KUrlRequester::openFileDialog, this, &SoundTestWidget::openSoundDialog);
40 connect(m_urlRequester->lineEdit(), &QLineEdit::textChanged, this, &SoundTestWidget::slotUrlChanged);
66 const QStringList soundDirs = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, QStringLiteral("sound/"), QStandardPaths::LocateDirectory);
104 connect(m_player, &Phonon::MediaObject::stateChanged, this, [this](Phonon::State newState, Phonon::State) {
virtual void setText(const QString &)
void setUrl(const QUrl &url)
virtual QFileDialog * fileDialog() const
KLineEdit * lineEdit() const
void openFileDialog(KUrlRequester *)
void setMimeTypeFilters(const QStringList &mimeTypes)
SoundTestWidget(QWidget *parent=nullptr)
Creates a new sound test widget.
Definition soundtestwidget.cpp:24
void setUrl(const QString &url)
Sets the url of the sound file to play.
Definition soundtestwidget.cpp:121
void textChanged(const QString &)
This signal is emitted when the user enters a new URL.
~SoundTestWidget() override
Destroys the sound test widget.
void setCurrentSource(const MediaSource &source)
void stateChanged(Phonon::State newstate, Phonon::State oldstate)
State state() const
void pause()
void play()
QString i18nc(const char *context, const char *text, const TYPE &arg...)
KIOCORE_EXPORT QString dir(const QString &fileClass)
PHONON_EXPORT QStringList availableMimeTypes()
QCA_EXPORT void init()
void clicked(bool checked)
void setIcon(const QIcon &icon)
Files
QIcon fromTheme(const QString &name)
void addWidget(QWidget *w)
void setContentsMargins(const QMargins &margins)
void clear()
text
void textChanged(const QString &text)
bool isEmpty() const const
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
void setParent(QObject *parent)
LocateDirectory
GenericDataLocation
QStringList locateAll(StandardLocation type, const QString &fileName, LocateOptions options)
qsizetype count() const const
bool isEmpty() const const
qsizetype length() const const
QString mid(qsizetype position, qsizetype n) const const
bool startsWith(QChar c, Qt::CaseSensitivity cs) const const
QString trimmed() const const
QUrl fromLocalFile(const QString &localFile)
void setPath(const QString &path, ParsingMode mode)
void setEnabled(bool)
QLayout * layout() const const
void setToolTip(const QString &)
void setWindowTitle(const QString &)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.