##// END OF EJS Templates
A lot of refactoring:...
A lot of refactoring: QLopPlot now handle more than one plot. File browser uses QFileSystemModel and QItemView Wrapped QCustomPlot.

File last commit:

r1:a1d6d9df437f default
r6:665de41c4c74 default
Show More
folderlistwidget.h
36 lines | 870 B | text/x-c | CLexer
/ src / folderlistwidget.h
#ifndef FOLDERLISTWIDGET_H
#define FOLDERLISTWIDGET_H
#include <QWidget>
#include <QListWidget>
#include <QPoint>
#include <mainwindow.h>
class FolderListWidget : public QListWidget
{
Q_OBJECT
public:
explicit FolderListWidget(QWidget *parent = 0);
~FolderListWidget();
bool contains(const QString& name);
bool isDraging(const QString& name);
void setMainWindow(MainWindow* mw);
void setPath(const QString& path);
signals:
void askGlobalRescan();
public slots:
protected:
void dragEnterEvent(QDragEnterEvent *event);
void dragMoveEvent(QDragMoveEvent *event);
void dragLeaveEvent(QDragLeaveEvent* event);
void dropEvent(QDropEvent *event);
void mousePressEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
private:
QStringList lastDragItems;
MainWindow* p_mainWin;
QString p_path;
};
#endif // FOLDERLISTWIDGET_H