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()); }