Mon, 27 Jun 2022 15:55:27 +0300
Show current subwindow title in main window title
#pragma once #include <QWidget> #include "src/basics.h" #include "src/libraries.h" class LibrariesEditor : public QWidget { Q_OBJECT public: LibrariesEditor(QWidget* parent = nullptr); ~LibrariesEditor(); void saveSettings(); void setModel(LibrariesModel *model); private Q_SLOTS: void searchPathForNewLibrary(); void addNewLibrary(); void showContextMenu(const QPoint position); void setCurrentLibraryRole(); void removeCurrentLibrary(); void moveCurrentLibraryUp(); void moveCurrentLibraryDown(); private: enum { RoleColumn, PathColumn }; class Ui_LibrariesEditor& ui; LibrariesModel* currentModel(); qsizetype currentLibraryIndex() const; };