代码拉取完成,页面将自动刷新
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#define LOCATION_OF_REAL_PATH Qt::UserRole + 1
#include "propertydesktop.h"
#include "ui_propertydesktop.h"
#include <QMainWindow>
#include <QModelIndex>
#include <QLineEdit>
#include <QFileInfoList>
#include <QListWidgetItem>
#include <QSettings>
#include <QDir>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private:
Ui::MainWindow *ui;
QString BS(qint64 b, int digits);
QLineEdit *lineEdit_location, *lineEdit_search;
QString path, source, pathIcon, pathDesktop, dir, pathSource, dirTrash, dirTrashInfo;
int cut;
PropertyDesktop *dialogPD;
QMenu *sortMenu;
QAction *action_sortName, *action_sortSize, *action_sortType, *action_sortTime;
QModelIndexList modelIndexList;
//QList<QListWidgetItem*> selected_files;
QStringList SL_selected_files;
//QFileInfoList SL_selected_files;
void trashFiles();
void deleteFiles();
QString readSettings(QString path, QString group, QString key);
void open(QString path);
QFileInfoList list;
bool delDir(QString dirpath);
QScrollBar *verticalScrollBar;
void iconPreview(int v);
bool isPreviewFinish, isShowHidden;
//QFileSystemWatcher *watcher;
void readSettings();
void genHomePage();
QSettings settings;
QDir::SortFlags sortFlags = QDir::Name | QDir::DirsFirst;
void appendLog(QString s);
void openwith_filter(QListWidget *listWidget, QString text, QLabel *label);
protected:
void wheelEvent(QWheelEvent*);
void closeEvent(QCloseEvent *event);
void resizeEvent(QResizeEvent *event);
private slots:
void on_action_changelog_triggered();
void on_action_about_triggered();
void on_action_icon_triggered();
void on_action_list_triggered();
void on_action_back_triggered();
void on_action_forward_triggered();
//void nav(QModelIndex index);
void nav(QListWidgetItem *item);
//void listWidgetClicked(QModelIndex index);
void listWidgetDoubleClicked(QModelIndex index);
void listWidgetItemClicked(QListWidgetItem *item);
void listWidgetItemSelectionChanged();
void tableWidgetDoubleClicked(QModelIndex index);
void lineEditLocationReturnPressed();
void customContextMenu(const QPoint &pos);
//void viewContextMenuTV(const QPoint &pos);
void customContextMenuPartition(const QPoint &pos);
void enterOpen();
void search();
void trashDelete();
void copy();
void paste();
void genList(QString spath);
void verticalScrollBarValueChanged(int v);
void switchHidden();
void refresh();
void rename();
void listWidgetItemChanged(QListWidgetItem *LWI);
void zoomIn();
void zoomOut();
void zoom1();
void processOutput();
void processError();
};
#endif // MAINWINDOW_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。