Debian Codegraph @

tests/manual/examples/widgets/itemviews/puzzle/mainwindow.h

raw
1 // Copyright (C) 2016 The Qt Company Ltd.
2 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4 #ifndef MAINWINDOW_H
5 #define MAINWINDOW_H
6
7 #include <QMainWindow>
8 #include <QPixmap>
9
10 class PuzzleWidget;
11 class PiecesModel;
12 QT_BEGIN_NAMESPACE
13 class QListView;
14 QT_END_NAMESPACE
15
16 class MainWindow : public QMainWindow
17 {
18 Q_OBJECT
19
20 public:
21 explicit MainWindow(QWidget *parent = nullptr);
22
23 public slots:
24 void openImage();
25 void loadImage(const QString &path);
26 void setupPuzzle();
27
28 private slots:
29 void setCompleted();
30
31 private:
32 void setupMenus();
33 void setupWidgets();
34
35 QPixmap puzzleImage;
36 QListView *piecesList;
37 PuzzleWidget *puzzleWidget;
38 PiecesModel *model;
39 };
40
41 #endif // MAINWINDOW_H