-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.h
More file actions
40 lines (30 loc) · 712 Bytes
/
MainWindow.h
File metadata and controls
40 lines (30 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#pragma once
#include <QtWidgets>
#include <QStringList>
#include <QFileInfo>
#include "ui_m_form.h"
#include "Model.h"
#include "MyListView.h"
class MyProxiModel;
class MainWindow: public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget* pwgt = nullptr);
~MainWindow();
protected:
virtual void dragEnterEvent(QDragEnterEvent* event);
virtual void dropEvent(QDropEvent* event);
virtual void keyPressEvent(QKeyEvent *event);
public slots:
void OnSortAZ();
void OnSortZA();
void OnSortDate();
private:
void SetGui();
void LoadData(MyListModel* model);
void SaveData(MyListModel* model);
private:
Ui_MainWindow m_ui;
MyProxiModel* m_proxiModel;
};