This commit is contained in:
2022-12-09 11:16:11 +08:00
parent fbffe12501
commit 2ec4b1f4d4
168 changed files with 7008 additions and 10696 deletions

48
src/mainwindow-dtk.h Normal file
View File

@@ -0,0 +1,48 @@
#ifndef MAINWINDOWDTK_H
#define MAINWINDOWDTK_H
#include <DMainWindow>
#include <DBlurEffectWidget>
#include <DTitlebar>
#include <DSearchEdit>
#include <QGraphicsDropShadowEffect>
#include <DGuiApplicationHelper>
#include <QPushButton>
#include <QDir>
#include <QDesktopServices>
#include "widgets/downloadlistwidget.h"
DWIDGET_USE_NAMESPACE
namespace Ui {
class MainWindow;
}
class MainWindow : public DBlurEffectWidget
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow();
void openUrl(QUrl);
private:
void initConfig();
void switchPage(int now);
void updateUi(int now);
private:
QList<int> pageHistory;
DownloadListWidget *downloadlistwidget;
QPushButton *downloadButton;
QPushButton *backButtom;
DSearchEdit *searchEdit = new DSearchEdit;
Ui::MainWindow *ui;
};
#endif // MAINWINDOWDTK_H