Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 819add0f authored by Laurent Montel's avatar Laurent Montel 😁 Committed by Pali Rohár

Port to QLineEdit

parent aad01886
......@@ -44,7 +44,7 @@
#include <kpluginloader.h>
#include <kio/netaccess.h>
#include <KHTMLView>
#include <klineedit.h>
#include <QLineEdit>
#include <klocale.h>
#include <kmessagebox.h>
#include <QPushButton>
......
......@@ -35,7 +35,7 @@
#include <KPluginLoader>
#include <KGenericFactory>
#include <kconfig.h>
#include <klineedit.h>
#include <QLineEdit>
#include "kopetebehaviorsettings.h"
#include "kopetepluginmanager.h"
......
......@@ -41,7 +41,7 @@
#include <kpluginfactory.h>
#include <kio/netaccess.h>
#include <khtmlview.h>
#include <klineedit.h>
#include <QLineEdit>
#include <klocale.h>
#include <kmessagebox.h>
#include <kmessagebox_queued.h>
......
......@@ -35,7 +35,7 @@ StatusEditWidget::StatusEditWidget( QWidget *parent )
{
ui->setupUi( this );
ui->statusTitle->setClearButtonShown( true );
ui->statusTitle->setClearButtonEnabled( true );
ui->buttonBox->addButton( KGuiItem( i18n( "C&lear" ), "edit-clear" ), QDialogButtonBox::DestructiveRole, this, SLOT(clearClicked()) );
setFocusPolicy( Qt::StrongFocus );
......
......@@ -24,7 +24,7 @@
#include "addressbooklinkwidget.h"
#include <qapplication.h>
#include <klineedit.h>
#include <QLineEdit>
#include <klocale.h>
#include <QPushButton>
......
......@@ -21,7 +21,7 @@
#ifndef ADDRESSEEITEM_H
#define ADDRESSEEITEM_H
#include <klineedit.h>
#include <QLineEdit>
#include <QTreeWidget>
#include "addressbookselectorwidget.h"
......
......@@ -22,7 +22,7 @@
#include <klocale.h>
#include <kcombobox.h>
#include <klineedit.h>
#include <QLineEdit>
#include <QPushButton>
#include <kiconloader.h>
......
......@@ -40,14 +40,14 @@ Kopete::UI::PasswordWidget::PasswordWidget( QWidget *parent )
: QWidget( parent ), d( new Private )
{
setupUi( this );
mPassword->setPasswordMode(true);
mPassword->setEchoMode(QLineEdit::Password);
}
Kopete::UI::PasswordWidget::PasswordWidget( Kopete::Password *from, QWidget *parent )
: QWidget( parent ), d( new Private )
{
setupUi( this );
mPassword->setPasswordMode(true);
mPassword->setEchoMode(QLineEdit::Password);
load( from );
}
......
......@@ -19,7 +19,7 @@
#include <QPushButton>
#include <klocale.h>
#include <klineedit.h>
#include <QLineEdit>
#include <kglobal.h>
#include <kgenericfactory.h>
#include <kmessagebox.h>
......
......@@ -20,7 +20,7 @@
#include <QPushButton>
#include <qwidget.h>
#include <qstring.h>
#include <klineedit.h>
#include <QLineEdit>
EditAliasDialog::EditAliasDialog( QWidget* parent )
......
......@@ -24,7 +24,7 @@
#include <QTreeWidget>
#include <klocale.h>
#include <klineedit.h>
#include <QLineEdit>
#include <kglobal.h>
#include <kgenericfactory.h>
......
......@@ -21,7 +21,7 @@
#include <QCheckBox>
#include <QVBoxLayout>
#include <klineedit.h>
#include <QLineEdit>
#include <kpluginfactory.h>
#include <klocalizedstring.h>
#include <kleo/ui/keyrequester.h>
......
......@@ -19,7 +19,7 @@
#include <kiconloader.h>
#include <klocalizedstring.h>
#include <klineedit.h>
#include <QLineEdit>
#include <qlabel.h>
#include <qboxlayout.h>
......
......@@ -24,7 +24,7 @@
#include <kcombobox.h>
#include <klineedit.h>
#include <QLineEdit>
#include <klocale.h>
#include <kdialog.h>
#include <kgenericfactory.h>
......
......@@ -119,7 +119,7 @@ HistoryDialog::HistoryDialog(Kopete::MetaContact *mc, QWidget* parent)
mMainWidget->setupUi( w );
mMainWidget->searchLine->setFocus();
mMainWidget->searchLine->setTrapReturnKey (true);
mMainWidget->searchLine->setClearButtonShown(true);
mMainWidget->searchLine->setClearButtonEnabled(true);
mMainWidget->contactComboBox->addItem(i18n("All"));
mMetaContactList = Kopete::ContactList::self()->metaContacts();
......
......@@ -109,7 +109,7 @@ History2Dialog::History2Dialog(Kopete::MetaContact *mc, QWidget* parent)
mMainWidget->setupUi( w );
mMainWidget->searchLine->setFocus();
mMainWidget->searchLine->setTrapReturnKey (true);
mMainWidget->searchLine->setClearButtonShown(true);
mMainWidget->searchLine->setClearButtonEnabled(true);
mMainWidget->contactComboBox->addItem(i18n("All"));
mMetaContactList = Kopete::ContactList::self()->metaContacts();
......
......@@ -35,7 +35,7 @@
#include <qpushbutton.h>
#include <QGroupBox>
#include <klineedit.h>
#include <QLineEdit>
#include <kmessagebox.h>
#include <kdebug.h>
#include <klocale.h>
......
......@@ -36,7 +36,7 @@
#include <kcombobox.h>
#include <krestrictedline.h>
#include <klineedit.h>
#include <QLineEdit>
#include <klocale.h>
GaduPublicDir::GaduPublicDir( GaduAccount* account, QWidget* parent )
......
......@@ -27,7 +27,7 @@
#include <qlabel.h>
#include <QPixmap>
#include <klineedit.h>
#include <QLineEdit>
#include <kmessagebox.h>
#include <kdebug.h>
#include <klocale.h>
......
......@@ -43,7 +43,7 @@
#include <kdebug.h>
#include <kglobal.h>
#include <kinputdialog.h>
//#include <klineedit.h>
//#include <QLineEdit>
//#include <klineeditdlg.h>
#include <klocale.h>
#include <kmenu.h>
......
......@@ -17,7 +17,7 @@
#include "jabberformlineedit.h"
JabberFormLineEdit::JabberFormLineEdit (const int type, const QString & realName, const QString & value, QWidget * parent) : KLineEdit (value, parent)
JabberFormLineEdit::JabberFormLineEdit (const int type, const QString & realName, const QString & value, QWidget * parent) : QLineEdit (value, parent)
{
fieldType = type;
......
......@@ -19,7 +19,7 @@
#define JABBERFORMLINEEDIT_H
#include <qwidget.h>
#include <klineedit.h>
#include <QLineEdit>
#include "xmpp_tasks.h"
......@@ -27,7 +27,7 @@
*@author Till Gerken <till@tantalo.net>
*/
class JabberFormLineEdit:public KLineEdit
class JabberFormLineEdit:public QLineEdit
{
Q_OBJECT public:
......
......@@ -60,11 +60,11 @@ JabberFormTranslator::JabberFormTranslator (const XMPP::Form & form, QWidget * p
formLayout->addWidget (label, row, 0);
label->show ();
KLineEdit *edit;
QLineEdit *edit;
edit = new JabberFormLineEdit ((*it).type (), (*it).realName (),
(*it).value (), this);
if ((*it).type() == XMPP::FormField::password)
edit->setPasswordMode(true);
edit->setEchoMode(QLineEdit::Password);
formLayout->addWidget (edit, row, 1);
edit->show ();
......
......@@ -21,7 +21,7 @@
#include <kdebug.h>
#include <klocale.h>
#include <klineedit.h>
#include <QLineEdit>
#include <kmessagebox.h>
#include <qlabel.h>
#include <qlineedit.h>
......@@ -44,9 +44,9 @@ DlgJabberChangePassword::DlgJabberChangePassword ( JabberAccount *account, QWidg
m_mainWidget = new Ui::DlgChangePassword;
m_mainWidget->setupUi( mainWidget() );
m_mainWidget->peNewPassword1->setPasswordMode( true );
m_mainWidget->peNewPassword2->setPasswordMode( true );
m_mainWidget->peCurrentPassword->setPasswordMode( true );
m_mainWidget->peNewPassword1->setEchoMode(QLineEdit::Password);
m_mainWidget->peNewPassword2->setEchoMode(QLineEdit::Password);
m_mainWidget->peCurrentPassword->setEchoMode(QLineEdit::Password);
connect(this,SIGNAL(okClicked()),this,SLOT(slotOk()));
connect(this,SIGNAL(cancelClicked()),this,SLOT(slotCancel()));
}
......
......@@ -30,7 +30,7 @@
// KDE includes
#include <kdebug.h>
#include <QPushButton>
#include <klineedit.h>
#include <QLineEdit>
#include <klocale.h>
#include <kurllabel.h>
#include <kmessagebox.h>
......
......@@ -21,7 +21,7 @@
#include "jabberaddcontactpage.h"
#include <qlayout.h>
#include <klineedit.h>
#include <QLineEdit>
#include <klocale.h>
#include <kopeteaccount.h>
#include <qlabel.h>
......
......@@ -29,7 +29,7 @@
#include <kmessagebox.h>
#include <klocale.h>
#include <kglobal.h>
#include <klineedit.h>
#include <QLineEdit>
#include <kopetepassword.h>
#include <kopetepasswordedaccount.h>
......
......@@ -26,7 +26,7 @@
#include <kiconloader.h>
#include <kglobal.h>
#include <kmessagebox.h>
#include <klineedit.h>
#include <QLineEdit>
#include <knuminput.h>
#include <QPushButton>
#include <qlabel.h>
......@@ -84,9 +84,9 @@ JabberRegisterAccount::JabberRegisterAccount ( JabberEditAccountWidget *parent )
// get all settings from the main dialog
mMainWidget->leJID->setText ( parent->mID->text () );
mMainWidget->lePassword->setText ( parent->mPass->password () );
mMainWidget->lePassword->setPasswordMode ( true );
mMainWidget->lePassword->setEchoMode(QLineEdit::Password);
// mMainWidget->lePasswordVerify->setText ( parent->mPass->password () ); //BUG 114631
mMainWidget->lePasswordVerify->setPasswordMode ( true );
mMainWidget->lePasswordVerify->setEchoMode(QLineEdit::Password);
mMainWidget->cbUseSSL->setChecked ( parent->cbUseSSL->isChecked () );
mMainWidget->cbOverrideHost->setChecked ( parent->cbCustomServer->isChecked () );
mMainWidget->leServer->setText ( parent->mServer->text () );
......
......@@ -28,7 +28,7 @@
#include <kaction.h>
#include <kdebug.h>
#include <kfiledialog.h>
#include <klineedit.h>
#include <QLineEdit>
#include <klocale.h>
#include <kstandarddirs.h>
#include <kmessagebox.h>
......
......@@ -22,7 +22,7 @@
#include <kconfigbase.h>
#include <klineedit.h>
#include <QLineEdit>
#include <klocale.h>
#include <kurlrequester.h>
#include <kmessagebox.h>
......@@ -202,7 +202,7 @@ void SMSSend::setOptions(const QString& name)
l->setText('&' + m_provider->name(i) + ':');
l->setToolTip( m_provider->description(i));
m_layout->addWidget(l, i+2, 0);
KLineEdit *e = new KLineEdit(m_parent);
QLineEdit *e = new QLineEdit(m_parent);
e->setText(m_provider->value(i));
m_layout->addWidget(e, i+2, 1);
args.append(e);
......
......@@ -20,7 +20,7 @@
#include <QList>
#include <klineedit.h>
#include <QLineEdit>
#include "smsservice.h"
......@@ -55,7 +55,7 @@ private slots:
private:
SMSSendProvider* m_provider;
SMSSendPrefsUI* prefWidget;
QList<KLineEdit*> args;
QList<QLineEdit*> args;
QList<QLabel*> labels;
QString m_description;
} ;
......
......@@ -22,7 +22,7 @@
#include <kconfigbase.h>
#include <k3process.h>
#include <klineedit.h>
#include <QLineEdit>
#include <kmessagebox.h>
#include <kdebug.h>
#include <klocale.h>
......@@ -171,7 +171,7 @@ bool SMSSendProvider::isHidden(int i) const
return isHiddens[i];
}
void SMSSendProvider::save(const QList<KLineEdit*>& args)
void SMSSendProvider::save(const QList<QLineEdit*>& args)
{
kDebug( 14160 ) << "m_account = " << m_account << " (should be non-zero!!)";
if (!m_account) return; // prevent crash in worst case
......
......@@ -22,7 +22,7 @@
#include <QList>
#include <QByteArray>
#include <klineedit.h>
#include <QLineEdit>
#include "kopetemessage.h"
......@@ -46,7 +46,7 @@ public:
const QString& description(int i);
bool isHidden(int i) const;
void save(const QList<KLineEdit*>& args);
void save(const QList<QLineEdit*>& args);
void send(const Kopete::Message& msg);
int maxSize();
......
......@@ -19,7 +19,7 @@
#include <qlabel.h>
#include <klocale.h>
#include <klineedit.h>
#include <QLineEdit>
#include "smsuserprefs.h"
#include "smscontact.h"
......
......@@ -33,7 +33,7 @@
#include <klocale.h>
#include <kurlrequester.h>
#include <knuminput.h>
#include <klineedit.h>
#include <QLineEdit>
#include <kmessagebox.h>
#include <kconfig.h>
#include <kstandarddirs.h>
......
......@@ -24,7 +24,7 @@
// KDE Includes
#include <kdebug.h>
#include <klineedit.h>
#include <QLineEdit>
// Kopete Includes
#include <addcontactpage.h>
......
......@@ -19,7 +19,7 @@
#include "yahooconferencemessagemanager.h"
#include <kdebug.h>
#include <klineedit.h>
#include <QLineEdit>
#include <klocale.h>
#include <kmessagebox.h>
#include <kmenu.h>
......
......@@ -23,7 +23,7 @@
// KDE Includes
#include <kdebug.h>
#include <klineedit.h>
#include <QLineEdit>
#include <ktemporaryfile.h>
#include <klocale.h>
#include <kio/global.h>
......
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