1 #ifndef LABEL_HPP 2 #define LABEL_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 <QLabel> 16 17 18 class Label : public QLabel 19 { 20 Q_OBJECT 21 22 public: 23 Label(QWidget *parent=0); 24 25 signals: 26 void filenamesDropped(const QStringList &filenames); 27 void clicked(const QPoint &pos); 28 29 protected: 30 void dragEnterEvent(QDragEnterEvent *event); 31 void dropEvent(QDropEvent *event); 32 void mousePressEvent(QMouseEvent *event); 33 }; 34 35 #endif // LABEL_HPP 36