From b44c3eeb732a115e7c49e6ca9880e674f28da43e Mon Sep 17 00:00:00 2001 From: andyq Date: Wed, 16 Oct 2002 21:23:18 +0000 Subject: 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) --- (limited to 'noncore/settings/aqpkg/letterpushbutton.cpp') 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 @@ +/*************************************************************************** + letterpushbutton.cpp - description + ------------------- + begin : Wed Oct 16 2002 + copyright : (C) 2002 by Andy Qua + email : andy.qua@blueyonder.co.uk + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#include "letterpushbutton.h" + +LetterPushButton :: LetterPushButton( const QString &text, QWidget *parent, const char *name=0 ) + : QPushButton( text, parent, name ) +{ + connect( this, SIGNAL(released()), this, SLOT(released_emmitor()) ); +} + +LetterPushButton :: ~LetterPushButton() +{ +} + +void LetterPushButton :: released_emmitor() +{ + emit released( text() ); +} + -- cgit v0.9.0.2