Messagelib
7 #include "remotecontentwidget.h"
8 #include "remotecontentstatustypecombobox.h"
10 #include <KLocalizedString>
12 #include <QHBoxLayout>
16 using namespace MessageViewer;
17 RemoteContentWidget::RemoteContentWidget(
QWidget *parent)
20 , mStatusComboBox(new RemoteContentStatusTypeComboBox(this))
23 mainLayout->setObjectName(QStringLiteral(
"mainLayout"));
24 mainLayout->setContentsMargins({});
26 mLineEdit->setObjectName(QStringLiteral(
"mLineEdit"));
27 mLineEdit->setClearButtonEnabled(
true);
29 mainLayout->addWidget(label);
30 mainLayout->addWidget(mLineEdit);
32 mStatusComboBox->setObjectName(QStringLiteral(
"mStatusComboBox"));
33 mainLayout->addWidget(mStatusComboBox);
37 RemoteContentWidget::~RemoteContentWidget() =
default;
39 void RemoteContentWidget::slotTextChanged(
const QString &url)
47 info.setUrl(mLineEdit->text());
48 info.setStatus(mStatusComboBox->status());
54 mLineEdit->setText(info.url());
55 mStatusComboBox->setStatus(info.status());
The RemoteContentInfo class.
QString trimmed() const const
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QString i18n(const char *text, const TYPE &arg...)
void textChanged(const QString &text)
bool isEmpty() const const
QString label(StandardShortcut id)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Mar 26 2023 04:08:12 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.