autotroll.m4: Clean up Qt path stuff.
[ttfautohint.git] / frontend / ddlineedit.h
blobf4895548a6a6fcbf43da05163ab51fc80f340540
1 // ddlineedit.h
3 // Copyright (C) 2012-2017 by Werner Lemberg.
4 //
5 // This file is part of the ttfautohint library, and may only be used,
6 // modified, and distributed under the terms given in `COPYING'. By
7 // continuing to use, modify, or distribute this file you indicate that you
8 // have read `COPYING' and understand and accept it fully.
9 //
10 // The file `COPYING' mentioned in the previous paragraph is distributed
11 // with the ttfautohint library.
14 #ifndef DDLINEEDIT_H_
15 #define DDLINEEDIT_H_
17 #include <config.h>
18 #include "ttlineedit.h"
20 #include <QDragEnterEvent>
21 #include <QFileInfo>
22 #include <QMimeData>
23 #include <QUrl>
25 enum Drag_Drop_File_Type
27 DRAG_DROP_TRUETYPE,
28 DRAG_DROP_ANY
32 class Drag_Drop_Line_Edit
33 : public Tooltip_Line_Edit
35 Q_OBJECT
37 Drag_Drop_File_Type file_type;
39 public:
40 Drag_Drop_Line_Edit(Drag_Drop_File_Type,
41 QWidget* = 0);
43 void dragEnterEvent(QDragEnterEvent*);
44 void dropEvent(QDropEvent*);
48 #endif // DDLINEEDIT_H_
50 // end of ddlineedit.h