kdelibs/kdeui/tests/klineedittest.h
Ivailo Monev 61333c4671 generic: namespaced Qt4/Katie build fixes
most of the changes were done trought Katie's namefsck script which
convertes forward class declarations to include directives, however
other fixes here and there were needed as well as some questionable
changes to Q_DECLARE_TYPEINFO() macro calls because they most likely
have to do the namespacing themselfs (QT_BEGIN/END_NAMESPACE, and
probably will be in Katie) meaning that some of the changes may be
temporary and reverted later.

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2017-08-04 09:24:39 +00:00

51 lines
1 KiB
C++

#ifndef KLINEEDITTEST_H
#define KLINEEDITTEST_H
#include <QtGui/QWidget>
#include <QtCore/QPointer>
#include <QLabel>
class KRestrictedLine;
#include <QString>
#include <QPushButton>
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