previewlist.h (krename-4.0.9) | : | previewlist.h (krename-4.90.90) | ||
---|---|---|---|---|
skipping to change at line 18 | skipping to change at line 18 | |||
/*************************************************************************** | /*************************************************************************** | |||
* * | * * | |||
* This program is free software; you can redistribute it and/or modify * | * This program is free software; you can redistribute it and/or modify * | |||
* it under the terms of the GNU General Public License as published by * | * it under the terms of the GNU General Public License as published by * | |||
* the Free Software Foundation; either version 2 of the License, or * | * the Free Software Foundation; either version 2 of the License, or * | |||
* (at your option) any later version. * | * (at your option) any later version. * | |||
* * | * * | |||
***************************************************************************/ | ***************************************************************************/ | |||
#ifndef _PREVIEW_LIST_H_ | #ifndef PREVIEW_LIST_H | |||
#define _PREVIEW_LIST_H_ | #define PREVIEW_LIST_H | |||
#include <QTreeView> | #include <QTreeView> | |||
class KRenameModel; | class KRenameModel; | |||
class KMenu; | class QMenu; | |||
class PreviewList : public QTreeView { | class PreviewList : public QTreeView | |||
{ | ||||
Q_OBJECT | Q_OBJECT | |||
public: | public: | |||
PreviewList( QWidget* parent ); | explicit PreviewList(QWidget *parent); | |||
~PreviewList(); | ~PreviewList(); | |||
inline void setKRenameModel( KRenameModel* model ) | inline void setKRenameModel(KRenameModel *model) | |||
{ | { | |||
m_model = model; | m_model = model; | |||
} | } | |||
signals: | Q_SIGNALS: | |||
void addFiles(); | void addFiles(); | |||
void updateCount(); | void updateCount(); | |||
private slots: | private Q_SLOTS: | |||
void slotOpen(); | void slotOpen(); | |||
void slotRemove(); | void slotRemove(); | |||
void slotManually(); | void slotManually(); | |||
protected: | protected: | |||
void contextMenuEvent( QContextMenuEvent* e ); | void contextMenuEvent(QContextMenuEvent *e); | |||
private: | private: | |||
KRenameModel* m_model; | KRenameModel *m_model; | |||
KMenu* m_menu; | QMenu *m_menu; | |||
}; | }; | |||
#endif // _PREVIEW_LIST_H_ | #endif // PREVIEW_LIST_H | |||
End of changes. 8 change blocks. | ||||
19 lines changed or deleted | 20 lines changed or added |