1 #ifndef LINEEDIT_HPP 2 #define LINEEDIT_HPP 3 /* 4 Copyright © 2011-13 Qtrac Ltd. All rights reserved. 5 This program or module is free software: you can redistribute it 6 and/or modify it under the terms of the GNU General Public License 7 as published by the Free Software Foundation, either version 2 of 8 the License, or (at your option) any later version. This program is 9 distributed in the hope that it will be useful, but WITHOUT ANY 10 WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 for more details. 13 */ 14 15 #include <QLineEdit> 16 17 18 class LineEdit : public QLineEdit 19 { 20 Q_OBJECT 21 22 public: 23 LineEdit(QWidget *parent=0); 24 25 signals: 26 void filenamesDropped(const QStringList &filenames); 27 28 protected: 29 void dragEnterEvent(QDragEnterEvent *event); 30 void dropEvent(QDropEvent *event); 31 }; 32 33 #endif // LINEEDIT_HPP 34