GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
QGo4BrowserTreeWidget.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 QGOBROWSERLISTVIEW_H
15 #define QGOBROWSERLISTVIEW_H
16 
17 #include <QTreeWidget>
18 
19 #ifdef __GO4DESIGNER__
20 #include <QtDesigner/QDesignerExportWidget>
21 class QDESIGNER_WIDGET_EXPORT QGo4BrowserTreeWidget : public QTreeWidget {
22 #else
23 class QGo4BrowserTreeWidget : public QTreeWidget {
24 #endif
25  Q_OBJECT
26 
27  public:
28  QGo4BrowserTreeWidget(QWidget *parent = nullptr);
29  virtual ~QGo4BrowserTreeWidget();
30 
31  bool dropMimeData(QTreeWidgetItem *parent, int index, const QMimeData *data, Qt::DropAction action) override;
32  QStringList mimeTypes() const override;
33  Qt::DropActions supportedDropActions() const override;
34 
35  void mouseMoveEvent(QMouseEvent *event) override;
36 
37  signals:
38 
39  void RequestDragObject(QDrag **);
40  void ItemDropProcess(void *, void *);
41 };
42 
43 #endif
44