Sat, 08 Apr 2023 15:50:38 +0300
Add missing 'static' keywords and deleted unused code
7 | 1 | #pragma once |
2 | #include <QWidget> | |
264
76a025db4948
Convert all includes to be relative to project root directory. Files that cannot be found in this manner use angle brackets.
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
259
diff
changeset
|
3 | #include "src/basics.h" |
76a025db4948
Convert all includes to be relative to project root directory. Files that cannot be found in this manner use angle brackets.
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
259
diff
changeset
|
4 | #include "src/libraries.h" |
7 | 5 | |
6 | class LibrariesEditor : public QWidget | |
7 | { | |
8 | Q_OBJECT | |
9 | public: | |
218
63125c36de73
Replace config collector with a simpler system
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
206
diff
changeset
|
10 | LibrariesEditor(QWidget* parent = nullptr); |
7 | 11 | ~LibrariesEditor(); |
218
63125c36de73
Replace config collector with a simpler system
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
206
diff
changeset
|
12 | void saveSettings(); |
259
c27612f0eac0
- Made it build under Qt6
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
230
diff
changeset
|
13 | void setModel(LibrariesModel *model); |
112 | 14 | private Q_SLOTS: |
7 | 15 | void searchPathForNewLibrary(); |
16 | void addNewLibrary(); | |
8
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
7
diff
changeset
|
17 | void showContextMenu(const QPoint position); |
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
7
diff
changeset
|
18 | void setCurrentLibraryRole(); |
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
7
diff
changeset
|
19 | void removeCurrentLibrary(); |
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
7
diff
changeset
|
20 | void moveCurrentLibraryUp(); |
44679e468ba9
major update with many things
Teemu Piippo <teemu@hecknology.net>
parents:
7
diff
changeset
|
21 | void moveCurrentLibraryDown(); |
7 | 22 | private: |
23 | enum | |
24 | { | |
25 | RoleColumn, | |
26 | PathColumn | |
27 | }; | |
28 | class Ui_LibrariesEditor& ui; | |
259
c27612f0eac0
- Made it build under Qt6
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
230
diff
changeset
|
29 | LibrariesModel* currentModel(); |
300
3a4b132b8353
Fix build warnings, size_type of QVector changes from Qt5 to Qt6 so we need an alias for it
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
265
diff
changeset
|
30 | index_t currentLibraryIndex() const; |
7 | 31 | }; |