/*******************************************************************************
FILENAME:      qtermtoolbutton.cpp
REVISION:      2003.1.2 first created.
         
AUTHOR:        kingson fiasco
*******************************************************************************/
/*******************************************************************************
                                    NOTE
 This file may be used, distributed and modified without limitation.
 *******************************************************************************/

#include "qtermtoolbutton.h"
namespace QTerm
{
ToolButton::ToolButton( QWidget *parent, int id, QString name )
		:QToolButton(parent)
{
	setObjectName(name);
	this->id = id;
	connect(this, SIGNAL(clicked()), this, SLOT(slotClicked()));
}

ToolButton::~ToolButton()
{
}

void ToolButton::slotClicked()
{
	emit(buttonClicked(id));
}

} // namespace QTerm

#include <moc_qtermtoolbutton.cpp>
