All pastes #938759 Raw Edit

Stuff

public text v1 · immutable
·published 2008-03-11 21:07 UTC
rendered paste body
class ReportSectionTitle : public QLabel
{
	Q_OBJECT
	public:
		ReportSectionTitle ( QWidget *parent = 0);
		~ReportSectionTitle();
		
	protected:
		virtual void mouseDoubleClickEvent( QMouseEvent * event );

	signals:
		void doubleClicked();
};

ReportSectionTitle::ReportSectionTitle(QWidget*parent) : QLabel(parent)
{
	setFrameStyle(QFrame::Panel | QFrame::Raised);
	setMaximumHeight(minimumSizeHint().height());
	setMinimumHeight(minimumSizeHint().height());
	setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
}

ReportSectionTitle::~ReportSectionTitle()
{
	
}

void ReportSectionTitle::mouseDoubleClickEvent( QMouseEvent * event )
{
	kDebug() << endl;
	emit(doubleClicked());
}