2015-07-11 18:42:46 +03:00
|
|
|
#ifndef KLINEEDITTEST_H
|
|
|
|
#define KLINEEDITTEST_H
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
#include <QtGui/QWidget>
|
|
|
|
#include <QtCore/QPointer>
|
|
|
|
|
2017-08-04 09:17:49 +00:00
|
|
|
#include <QLabel>
|
2014-11-13 01:04:59 +02:00
|
|
|
class KRestrictedLine;
|
2017-08-04 09:17:49 +00:00
|
|
|
#include <QString>
|
|
|
|
#include <QPushButton>
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
class KLineEdit;
|
|
|
|
|
|
|
|
class KLineEditTest : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
KLineEditTest( QWidget *parent=0 );
|
|
|
|
~KLineEditTest();
|
|
|
|
KLineEdit* lineEdit() const { return m_lineedit; }
|
|
|
|
|
|
|
|
public Q_SLOTS:
|
|
|
|
virtual void show ();
|
|
|
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
void quitApp();
|
|
|
|
void slotHide();
|
|
|
|
void slotEnable( bool );
|
|
|
|
void slotReadOnly( bool );
|
|
|
|
void slotPassword( bool );
|
|
|
|
void slotReturnPressed();
|
|
|
|
void resultOutput( const QString& );
|
|
|
|
void slotReturnPressed( const QString& );
|
|
|
|
void slotClickMessage(bool click);
|
|
|
|
void slotInvalidChar(int);
|
|
|
|
void slotSetStyleSheet();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
KLineEdit* m_lineedit;
|
|
|
|
KRestrictedLine* m_restrictedLine;
|
|
|
|
QLabel* m_invalidCharLabel;
|
|
|
|
QPushButton* m_btnExit;
|
|
|
|
QPushButton* m_btnReadOnly;
|
|
|
|
QPushButton* m_btnPassword;
|
|
|
|
QPushButton* m_btnEnable;
|
|
|
|
QPushButton* m_btnHide;
|
|
|
|
QPushButton* m_btnClickMessage;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|