TemplatesMenu.h 400 B

12345678910111213141516171819202122
  1. #ifndef TEMPLATESMENU_H
  2. #define TEMPLATESMENU_H
  3. #include <QDir>
  4. #include <QMenu>
  5. class TemplatesMenu : public QMenu
  6. {
  7. Q_OBJECT
  8. public:
  9. TemplatesMenu(QWidget *parent = nullptr);
  10. virtual ~TemplatesMenu() = default;
  11. private slots:
  12. static void createNewProjectFromTemplate(QAction * _action);
  13. void fillTemplatesMenu();
  14. void addTemplatesFromDir( const QDir& dir );
  15. };
  16. #endif // TEMPLATESMENU_H