Debian Codegraph @

src/album/widgets/noresultwidget.h

raw
1 /*
2 * Copyright (C) 2020 ~ 2021 Uniontech Software Technology Co., Ltd.
3 *
4 * Author: ZhangYong <[email protected]>
5 *
6 * Maintainer: ZhangYong <[email protected]>
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 */
21 #ifndef NORESULTWIDGET_H
22 #define NORESULTWIDGET_H
23
24 #include "application.h"
25 #include "utils/baseutils.h"
26 #include "utils/imageutils.h"
27 #include "controller/configsetter.h"
28 #include "controller/signalmanager.h"
29 #include "dbmanager/dbmanager.h"
30 #include "thumbnail/thumbnaillistview.h"
31
32
33 #include <QWidget>
34 #include <QVBoxLayout>
35 #include <DLabel>
36 #include <QPixmap>
37 #include <QStandardPaths>
38 #include <QImageReader>
39 #include <DPushButton>
40 #include <QDir>
41 #include <QFileDialog>
42 #include <QFileInfo>
43 #include <DStackedWidget>
44 #include <DSlider>
45 #include <DWidget>
46 #include <DGuiApplicationHelper>
47 #include <QMouseEvent>
48 #include <DBlurEffectWidget>
49
50 DWIDGET_USE_NAMESPACE
51 DGUI_USE_NAMESPACE
52
53 class NoResultWidget : public QWidget
54 {
55 Q_OBJECT
56
57 public:
58 NoResultWidget(QWidget *parent);
59 ~NoResultWidget()override;
60
61 private:
62 void initNoSearchResultView();
63 void changeTheme();
64
65 private:
66 DLabel *pNoResult;
67 };
68
69 #endif // NORESULTWIDGET_H