summaryrefslogtreecommitdiff
path: root/noncore/settings/aqpkg/letterpushbutton.cpp
authorandyq <andyq>2002-10-16 21:23:18 (UTC)
committer andyq <andyq>2002-10-16 21:23:18 (UTC)
commitb44c3eeb732a115e7c49e6ca9880e674f28da43e (patch) (unidiff)
treeb14ac194bc06b180aed243de4240be3899394cd1 /noncore/settings/aqpkg/letterpushbutton.cpp
parent236caec506d95d29b6bff48a00821512c91a217e (diff)
downloadopie-b44c3eeb732a115e7c49e6ca9880e674f28da43e.zip
opie-b44c3eeb732a115e7c49e6ca9880e674f28da43e.tar.gz
opie-b44c3eeb732a115e7c49e6ca9880e674f28da43e.tar.bz2
Initial version
Class which returns a string as a signal when the button is pressed the string is the button text (so you know which is pushed)
Diffstat (limited to 'noncore/settings/aqpkg/letterpushbutton.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/letterpushbutton.cpp34
1 files changed, 34 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
20LetterPushButton :: 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
26LetterPushButton :: ~LetterPushButton()
27{
28}
29
30void LetterPushButton :: released_emmitor()
31{
32 emit released( text() );
33}
34