┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels
diff options
context:
space:
mode:
authorEmmanuel Pescosta <[email protected]>2014-11-10 09:08:04 +0100
committerEmmanuel Pescosta <[email protected]>2014-11-10 09:08:04 +0100
commit02c08351489ed7b649e6409bf529773bab5136d8 (patch)
tree5a87f5c4f30154648d3f1df3bbd32b4ff085d66f /src/panels
parentd0f0f1f2e2644e3738c03374d062dab9acc61eaf (diff)
KLineEdit to QLineEdit
Diffstat (limited to 'src/panels')
-rw-r--r--src/panels/places/placesitemeditdialog.cpp8
-rw-r--r--src/panels/places/placesitemeditdialog.h4
2 files changed, 6 insertions, 6 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);
diff --git a/src/panels/places/placesitemeditdialog.h b/src/panels/places/placesitemeditdialog.h
index f2bba546b..8a0dc0471 100644
--- a/src/panels/places/placesitemeditdialog.h
+++ b/src/panels/places/placesitemeditdialog.h
@@ -28,8 +28,8 @@
#include <QUrl>
class KIconButton;
-class KLineEdit;
class KUrlRequester;
+class QLineEdit;
class QCheckBox;
class QPushButton;
@@ -69,7 +69,7 @@ private:
bool m_allowGlobal;
KUrlRequester* m_urlEdit;
- KLineEdit* m_textEdit;
+ QLineEdit* m_textEdit;
KIconButton* m_iconButton;
QCheckBox* m_appLocal;
QPushButton *m_okButton;