diff options
| author | Emmanuel Pescosta <[email protected]> | 2014-11-10 09:08:04 +0100 |
|---|---|---|
| committer | Emmanuel Pescosta <[email protected]> | 2014-11-10 09:08:04 +0100 |
| commit | 02c08351489ed7b649e6409bf529773bab5136d8 (patch) | |
| tree | 5a87f5c4f30154648d3f1df3bbd32b4ff085d66f /src/panels/places/placesitemeditdialog.cpp | |
| parent | d0f0f1f2e2644e3738c03374d062dab9acc61eaf (diff) | |
KLineEdit to QLineEdit
Diffstat (limited to 'src/panels/places/placesitemeditdialog.cpp')
| -rw-r--r-- | src/panels/places/placesitemeditdialog.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/panels/places/placesitemeditdialog.cpp b/src/panels/places/placesitemeditdialog.cpp index 59085e474..93a4d21f4 100644 --- a/src/panels/places/placesitemeditdialog.cpp +++ b/src/panels/places/placesitemeditdialog.cpp @@ -28,7 +28,6 @@ #include <KFile> #include <KGlobal> #include <KIconButton> -#include <KLineEdit> #include <KLocalizedString> #include <QMimeDatabase> #include <KUrlRequester> @@ -39,6 +38,7 @@ #include <QVBoxLayout> #include <QDialogButtonBox> #include <QPushButton> +#include <QLineEdit> PlacesItemEditDialog::PlacesItemEditDialog(QWidget* parent) : QDialog(parent), @@ -137,17 +137,17 @@ void PlacesItemEditDialog::initialize() QFormLayout* formLayout = new QFormLayout(); vBox->addLayout( formLayout ); - m_textEdit = new KLineEdit(mainWidget); + m_textEdit = new QLineEdit(mainWidget); formLayout->addRow(i18nc("@label", "Label:"), m_textEdit); m_textEdit->setText(m_text); - m_textEdit->setClickMessage(i18n("Enter descriptive label here")); + m_textEdit->setPlaceholderText(i18n("Enter descriptive label here")); m_urlEdit = new KUrlRequester(m_url, mainWidget); m_urlEdit->setMode(KFile::Directory); formLayout->addRow(i18nc("@label", "Location:"), m_urlEdit); // Provide room for at least 40 chars (average char width is half of height) m_urlEdit->setMinimumWidth(m_urlEdit->fontMetrics().height() * (40 / 2)); - connect(m_urlEdit->lineEdit(), &KLineEdit::textChanged, this, &PlacesItemEditDialog::slotUrlChanged); + connect(m_urlEdit, &KUrlRequester::textChanged, this, &PlacesItemEditDialog::slotUrlChanged); m_iconButton = new KIconButton(mainWidget); formLayout->addRow(i18nc("@label", "Choose an icon:"), m_iconButton); |
