#include <QWidget>
#include <QModelIndex>
+#include <QPointer>
class MainWindow;
+class FileReadWorker;
class FolderPanel;
class FolderModel;
+class Preferences;
namespace Ui {
class Panel;
FolderModel* model() const;
void setModel(FolderModel *m);
void setViewItem(const QModelIndex &index = QModelIndex());
- void updateAppearance();
+ void updateAppearance(const Preferences &prefs);
QWidget* visibleView() const;
private:
Ui::Panel *ui;
+ QPointer<FileReadWorker> m_worker;
+
+public slots:
+ void onReady(const QByteArray &data);
+
+signals:
+ void showed(QWidget *w);
};
#endif // PANEL_H