-rw-r--r-- | noncore/settings/aqpkg/letterpushbutton.cpp | 34 | ||||
-rw-r--r-- | noncore/settings/aqpkg/letterpushbutton.h | 41 |
2 files changed, 75 insertions, 0 deletions
diff --git a/noncore/settings/aqpkg/letterpushbutton.cpp b/noncore/settings/aqpkg/letterpushbutton.cpp new file mode 100644 index 0000000..afe25d8 --- a/dev/null +++ b/noncore/settings/aqpkg/letterpushbutton.cpp | |||
@@ -0,0 +1,34 @@ | |||
1 | /*************************************************************************** | ||
2 | letterpushbutton.cpp - description | ||
3 | ------------------- | ||
4 | begin : Wed Oct 16 2002 | ||
5 | copyright : (C) 2002 by Andy Qua | ||
6 | email : andy.qua@blueyonder.co.uk | ||
7 | ***************************************************************************/ | ||
8 | |||
9 | /*************************************************************************** | ||
10 | * * | ||
11 | * This program is free software; you can redistribute it and/or modify * | ||
12 | * it under the terms of the GNU General Public License as published by * | ||
13 | * the Free Software Foundation; either version 2 of the License, or * | ||
14 | * (at your option) any later version. * | ||
15 | * * | ||
16 | ***************************************************************************/ | ||
17 | |||
18 | #include "letterpushbutton.h" | ||
19 | |||
20 | LetterPushButton :: LetterPushButton( const QString &text, QWidget *parent, const char *name=0 ) | ||
21 | : QPushButton( text, parent, name ) | ||
22 | { | ||
23 | connect( this, SIGNAL(released()), this, SLOT(released_emmitor()) ); | ||
24 | } | ||
25 | |||
26 | LetterPushButton :: ~LetterPushButton() | ||
27 | { | ||
28 | } | ||
29 | |||
30 | void LetterPushButton :: released_emmitor() | ||
31 | { | ||
32 | emit released( text() ); | ||
33 | } | ||
34 | |||
diff --git a/noncore/settings/aqpkg/letterpushbutton.h b/noncore/settings/aqpkg/letterpushbutton.h new file mode 100644 index 0000000..e45b89d --- a/dev/null +++ b/noncore/settings/aqpkg/letterpushbutton.h | |||
@@ -0,0 +1,41 @@ | |||
1 | /*************************************************************************** | ||
2 | letterpushbutton.h - description | ||
3 | ------------------- | ||
4 | begin : Wed Oct 16 2002 | ||
5 | copyright : (C) 2002 by Andy Qua | ||
6 | email : andy.qua@blueyonder.co.uk | ||
7 | ***************************************************************************/ | ||
8 | |||
9 | /*************************************************************************** | ||
10 | * * | ||
11 | * This program is free software; you can redistribute it and/or modify * | ||
12 | * it under the terms of the GNU General Public License as published by * | ||
13 | * the Free Software Foundation; either version 2 of the License, or * | ||
14 | * (at your option) any later version. * | ||
15 | * * | ||
16 | ***************************************************************************/ | ||
17 | |||
18 | #ifndef LETTERPUSHBUTTON_H | ||
19 | #define LETTERPUSHBUTTON_H | ||
20 | |||
21 | #include <qpushbutton.h> | ||
22 | |||
23 | /** | ||
24 | *@author Andy Qua | ||
25 | */ | ||
26 | |||
27 | class LetterPushButton : public QPushButton | ||
28 | { | ||
29 | Q_OBJECT | ||
30 | public: | ||
31 | LetterPushButton( const QString & text, QWidget * parent, const char * name=0 ); | ||
32 | ~LetterPushButton(); | ||
33 | |||
34 | public slots: | ||
35 | void released_emmitor(); | ||
36 | |||
37 | signals: | ||
38 | void released( QString text ); | ||
39 | }; | ||
40 | |||
41 | #endif | ||