File indexing completed on 2025-04-27 14:34:45
0001 /*************************************************************************** 0002 previewlist.h - description 0003 ------------------- 0004 begin : Sat Oct 06 2007 0005 copyright : (C) 2007 by Dominik Seichter 0006 email : domseichter@web.de 0007 ***************************************************************************/ 0008 0009 /*************************************************************************** 0010 * * 0011 * This program is free software; you can redistribute it and/or modify * 0012 * it under the terms of the GNU General Public License as published by * 0013 * the Free Software Foundation; either version 2 of the License, or * 0014 * (at your option) any later version. * 0015 * * 0016 ***************************************************************************/ 0017 0018 #ifndef PREVIEW_LIST_H 0019 #define PREVIEW_LIST_H 0020 0021 #include <QTreeView> 0022 0023 class KRenameModel; 0024 class QMenu; 0025 0026 class PreviewList : public QTreeView 0027 { 0028 Q_OBJECT 0029 0030 public: 0031 explicit PreviewList(QWidget *parent); 0032 ~PreviewList(); 0033 0034 inline void setKRenameModel(KRenameModel *model) 0035 { 0036 m_model = model; 0037 } 0038 0039 Q_SIGNALS: 0040 void addFiles(); 0041 void updateCount(); 0042 0043 private Q_SLOTS: 0044 void slotOpen(); 0045 void slotRemove(); 0046 void slotManually(); 0047 0048 protected: 0049 void contextMenuEvent(QContextMenuEvent *e); 0050 0051 private: 0052 KRenameModel *m_model; 0053 QMenu *m_menu; 0054 }; 0055 0056 #endif // PREVIEW_LIST_H 0057