File indexing completed on 2024-05-12 13:49:40
0001 /*************************************************************************** 0002 * Copyright (C) 2003 Cedric Pasteur <cedric.pasteur@free.fr> * 0003 * Copyright (C) 2006 David Saxton <david@bluehaze.org> * 0004 * * 0005 * This program is free software; you can redistribute it and/or modify * 0006 * it under the terms of the GNU General Public License as published by * 0007 * the Free Software Foundation; either version 2 of the License, or * 0008 * (at your option) any later version. * 0009 ***************************************************************************/ 0010 0011 #ifndef PROPERTYEDITORFILE_H 0012 #define PROPERTYEDITORFILE_H 0013 0014 #include "propertysubeditor.h" 0015 0016 class KLineEdit; 0017 class QPushButton; 0018 class QResizeEvent; 0019 class QLabel; 0020 class Variant; 0021 typedef Variant Property; 0022 0023 class PropertyEditorFile : public PropertySubEditor 0024 { 0025 Q_OBJECT 0026 0027 public: 0028 PropertyEditorFile(QWidget *parent, Property *property); 0029 ~PropertyEditorFile() override 0030 { 0031 ; 0032 } 0033 0034 void resizeEvent(QResizeEvent *ev) override; 0035 bool eventFilter(QObject *watched, QEvent *e) override; 0036 0037 protected slots: 0038 void selectFile(); 0039 0040 protected: 0041 KLineEdit *m_lineedit; 0042 QPushButton *m_button; 0043 }; 0044 0045 #endif