Extract RecentProjectsMenu class from MainWindow (#5148)
* Extract RecentProjectsMenu class from MainWindow * Clean up updateRecentlyOpenedProjectsMenu * Remove m_recentlyOpenedProjectsMenu from MainWindow
This commit is contained in:
@@ -203,8 +203,6 @@ private:
|
||||
QWidget * m_toolBar;
|
||||
QGridLayout * m_toolBarLayout;
|
||||
|
||||
QMenu * m_recentlyOpenedProjectsMenu;
|
||||
|
||||
struct keyModifiers
|
||||
{
|
||||
keyModifiers() :
|
||||
@@ -237,9 +235,7 @@ private:
|
||||
|
||||
private slots:
|
||||
void browseHelp();
|
||||
void openRecentlyOpenedProject( QAction * _action );
|
||||
void showTool( QAction * _idx );
|
||||
void updateRecentlyOpenedProjectsMenu();
|
||||
void updateViewMenu( void );
|
||||
void updateConfig( QAction * _who );
|
||||
void onToggleMetronome();
|
||||
|
||||
17
include/RecentProjectsMenu.h
Normal file
17
include/RecentProjectsMenu.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef RECENTPROJECTSMENU_H
|
||||
#define RECENTPROJECTSMENU_H
|
||||
|
||||
#include <QMenu>
|
||||
|
||||
class RecentProjectsMenu : public QMenu
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
RecentProjectsMenu(QWidget *parent = nullptr);
|
||||
|
||||
private slots:
|
||||
void fillMenu();
|
||||
void openProject(QAction * _action );
|
||||
};
|
||||
|
||||
#endif // RECENTPROJECTSMENU_H
|
||||
Reference in New Issue
Block a user