Esempio n. 1
0
SkinButton::SkinButton(QPixmap *pixmap, QPixmap *active, 
	QWidget *parent, const char *name, WFlags f)
	: QButton(parent, name, f), pixRegular(pixmap), pixActive(active)
{
	setPixmap(*pixmap);
	QObject::connect(this, SIGNAL(pressed()), SLOT(slotPressed()));
	QObject::connect(this, SIGNAL(released()), SLOT(slotReleased()));
}
Esempio n. 2
0
TDMDelayedPushButton::TDMDelayedPushButton( const KGuiItem &item,
                                            TQWidget *parent, 
                                            const char *name )
	: inherited( item, parent, name )
	, pop( 0 )
{
	connect( this, TQT_SIGNAL(pressed()), TQT_SLOT(slotPressed()) );
	connect( this, TQT_SIGNAL(released()), TQT_SLOT(slotReleased()) );
	connect( &popt, TQT_SIGNAL(timeout()), TQT_SLOT(slotTimeout()) );
}
Esempio n. 3
0
SkinButton::SkinButton(QWidget *parent, const char *name, WFlags f)
	: QButton(parent, name, f), pixRegular(NULL), pixActive(NULL)
{
	QObject::connect(this, SIGNAL(pressed()), SLOT(slotPressed()));
	QObject::connect(this, SIGNAL(released()), SLOT(slotReleased()));
}