GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
QGo4LineEdit.h
Go to the documentation of this file.
1 // $Id$
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #ifndef QGO4LINEEDIT_H
15 #define QGO4LINEEDIT_H
16 
17 #include <QLineEdit>
18 
19 #include <QDropEvent>
20 #include <QDragEnterEvent>
21 
28 #ifdef __GO4DESIGNER__
29 #include <QtDesigner/QDesignerExportWidget>
30 class QDESIGNER_WIDGET_EXPORT QGo4LineEdit : public QLineEdit {
31 #else
32 class QGo4LineEdit : public QLineEdit {
33 #endif
34  Q_OBJECT
35 
36  public:
37  QGo4LineEdit(QWidget *parent = nullptr, const char *name = nullptr);
38  virtual ~QGo4LineEdit();
39 
40  signals:
41  void textDropped();
42 
43  protected:
44  void dropEvent(QDropEvent*) override;
45  void dragEnterEvent(QDragEnterEvent*) override;
46 };
47 
48 #endif