Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
pushbutton.h
Go to the documentation of this file.
1 #ifndef PUSHBUTTON_H
2 #define PUSHBUTTON_H
3 
4 #include <QObject>
5 #include <QPushButton>
6 
7 class PushButton : public QPushButton {
8  Q_OBJECT
9 
10 public:
11  explicit PushButton( QWidget *parent = 0 );
12  ~PushButton( );
13 
14 signals:
15  void file( const QString &text );
16  void pixmap( const QPixmap &pix );
17  void item( const QString &text );
18 
19  /* QWidget interface */
20 protected:
21  virtual void dropEvent( QDropEvent *event ) override;
22 
23  /* QWidget interface */
24 protected:
25  virtual void dragEnterEvent( QDragEnterEvent *event ) override;
26  virtual void dragMoveEvent( QDragMoveEvent *event ) override;
27  virtual void dragLeaveEvent( QDragLeaveEvent *event ) override;
28 };
29 
30 #endif /* PUSHBUTTON_H */
virtual void dragLeaveEvent(QDragLeaveEvent *event) override
Definition: pushbutton.cpp:48
PushButton(QWidget *parent=0)
Definition: pushbutton.cpp:9
void file(const QString &text)
virtual void dragMoveEvent(QDragMoveEvent *event) override
Definition: pushbutton.cpp:43
void item(const QString &text)
virtual void dragEnterEvent(QDragEnterEvent *event) override
Definition: pushbutton.cpp:38
virtual void dropEvent(QDropEvent *event) override
Definition: pushbutton.cpp:15
void pixmap(const QPixmap &pix)