Ctrl+R shortcut for refreshing memory inspection panes
This commit is contained in:
@@ -409,6 +409,13 @@ namespace Bloom::Widgets
|
|||||||
PaneWidget::resizeEvent(event);
|
PaneWidget::resizeEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TargetMemoryInspectionPane::keyPressEvent(QKeyEvent* event) {
|
||||||
|
if ((event->modifiers() & Qt::ControlModifier) != 0 && event->key() == Qt::Key::Key_R) {
|
||||||
|
this->refreshButton->click();
|
||||||
|
event->accept();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void TargetMemoryInspectionPane::postActivate() {
|
void TargetMemoryInspectionPane::postActivate() {
|
||||||
if (
|
if (
|
||||||
(this->settings.refreshOnActivation || !this->data.has_value())
|
(this->settings.refreshOnActivation || !this->data.has_value())
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
#include <QResizeEvent>
|
#include <QResizeEvent>
|
||||||
#include <QHBoxLayout>
|
#include <QHBoxLayout>
|
||||||
#include <QToolButton>
|
#include <QToolButton>
|
||||||
|
#include <QKeyEvent>
|
||||||
|
|
||||||
#include "src/Insight/UserInterfaces/InsightWindow/Widgets/PaneWidget.hpp"
|
#include "src/Insight/UserInterfaces/InsightWindow/Widgets/PaneWidget.hpp"
|
||||||
|
|
||||||
@@ -42,6 +43,7 @@ namespace Bloom::Widgets
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
void resizeEvent(QResizeEvent* event) override;
|
void resizeEvent(QResizeEvent* event) override;
|
||||||
|
void keyPressEvent(QKeyEvent* event) override;
|
||||||
|
|
||||||
void postActivate();
|
void postActivate();
|
||||||
void postDeactivate();
|
void postDeactivate();
|
||||||
|
|||||||
Reference in New Issue
Block a user