summaryrefslogtreecommitdiffstats
path: root/kdeui/tests/klineedittest.h
blob: e3b87c30eed350b2540a658bc2fb736566de2770 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef _KLINEEDITTEST_H
#define _KLINEEDITTEST_H

#include <qwidget.h>
#include <qguardedptr.h>

class QString;
class QPushButton;

class KLineEdit;

class KLineEditTest : public QWidget
{
    Q_OBJECT

public:
   KLineEditTest( QWidget *parent=0, const char *name=0 );
   ~KLineEditTest();
   KLineEdit* lineEdit() const { return m_lineedit; }

public slots:
   virtual void show ();
   
private slots:
   void quitApp();
   void slotHide();   
   void slotEnable( bool );
   void slotReadOnly( bool );   
   void slotReturnPressed();
   void resultOutput( const QString& );   
   void slotReturnPressed( const QString& );
   
protected:
   QGuardedPtr<KLineEdit> m_lineedit;
   QPushButton* m_btnExit;
   QPushButton* m_btnReadOnly;
   QPushButton* m_btnEnable;
   QPushButton* m_btnHide;
};

#endif