Commit bb2f9261 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port to QLineEdit

parent 4b5dbd01
......@@ -35,6 +35,7 @@
#include <Akonadi/KMime/NewMailNotifierAttribute>
#include <KIdentityManagement/IdentityCombo>
#include <PimCommonAkonadi/ImapResourceCapabilitiesManager>
#include <Libkdepim/LineEditCatchReturnKey>
#include <KColorScheme>
#include <KLineEdit>
......@@ -93,10 +94,10 @@ void CollectionGeneralPage::init(const Akonadi::Collection &collection)
label = new QLabel(i18nc("@label:textbox Name of the folder.", "&Name:"), this);
hl->addWidget(label);
mNameEdit = new KLineEdit(this);
mNameEdit->setTrapReturnKey(true);
mNameEdit = new QLineEdit(this);
new KPIM::LineEditCatchReturnKey(mNameEdit, this);
connect(mNameEdit, &KLineEdit::textChanged, this, &CollectionGeneralPage::slotNameChanged);
connect(mNameEdit, &QLineEdit::textChanged, this, &CollectionGeneralPage::slotNameChanged);
label->setBuddy(mNameEdit);
hl->addWidget(mNameEdit);
}
......
......@@ -23,7 +23,7 @@
#include <CollectionPropertiesPage>
class KLineEdit;
class QLineEdit;
class QCheckBox;
......@@ -71,7 +71,7 @@ private:
QCheckBox *mKeepRepliesInSameFolderCheckBox = nullptr;
QCheckBox *mHideInSelectionDialogCheckBox = nullptr;
QCheckBox *mUseDefaultIdentityCheckBox = nullptr;
KLineEdit *mNameEdit = nullptr;
QLineEdit *mNameEdit = nullptr;
KIdentityManagement::IdentityCombo *mIdentityComboBox = nullptr;
QSharedPointer<MailCommon::FolderSettings> mFolderCollection;
bool mIsLocalSystemFolder = false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment