update keyboard shortcuts
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include <QWidget>
|
||||
|
||||
#include "BuilderModeExitedEvent.h"
|
||||
#include "BuildHotkeyPressedEvent.h"
|
||||
#include "BuildingType.h"
|
||||
#include "DemolishModeChangedEvent.h"
|
||||
#include "EventHandler.h"
|
||||
@@ -15,7 +16,8 @@ class QPushButton;
|
||||
|
||||
class BuildButtonGrid : public QWidget,
|
||||
public CombinedEventHandler<BuilderModeExitedEvent,
|
||||
DemolishModeChangedEvent>
|
||||
DemolishModeChangedEvent,
|
||||
BuildHotkeyPressedEvent>
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
@@ -29,6 +31,7 @@ public:
|
||||
private:
|
||||
void handleEvent(std::shared_ptr<const BuilderModeExitedEvent> event) override;
|
||||
void handleEvent(std::shared_ptr<const DemolishModeChangedEvent> event) override;
|
||||
void handleEvent(std::shared_ptr<const BuildHotkeyPressedEvent> event) override;
|
||||
|
||||
private slots:
|
||||
void onBuildButton(int index);
|
||||
|
||||
Reference in New Issue
Block a user