Tidying
This commit is contained in:
@@ -11,7 +11,7 @@ namespace Bloom::Widgets
|
|||||||
|
|
||||||
void PlainTextEdit::contextMenuEvent(QContextMenuEvent* event) {
|
void PlainTextEdit::contextMenuEvent(QContextMenuEvent* event) {
|
||||||
if (QMenu* menu = this->createStandardContextMenu()) {
|
if (QMenu* menu = this->createStandardContextMenu()) {
|
||||||
menu->setAttribute(Qt::WA_DeleteOnClose);
|
menu->setAttribute(Qt::WA_DeleteOnClose, true);
|
||||||
|
|
||||||
// Remove default icons
|
// Remove default icons
|
||||||
for (auto& action : menu->actions()) {
|
for (auto& action : menu->actions()) {
|
||||||
|
|||||||
@@ -66,7 +66,9 @@ namespace Bloom::Widgets
|
|||||||
signals:
|
signals:
|
||||||
void ready();
|
void ready();
|
||||||
void hoveredAddress(const std::optional<Targets::TargetMemoryAddress>& address);
|
void hoveredAddress(const std::optional<Targets::TargetMemoryAddress>& address);
|
||||||
void selectionChanged(const std::unordered_map<Targets::TargetMemoryAddress, ByteItem*>& selectedByteItemsByAddress);
|
void selectionChanged(
|
||||||
|
const std::unordered_map<Targets::TargetMemoryAddress, ByteItem*>& selectedByteItemsByAddress
|
||||||
|
);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool enabled = true;
|
bool enabled = true;
|
||||||
|
|||||||
@@ -383,7 +383,7 @@ namespace Bloom::Widgets
|
|||||||
|
|
||||||
this->targetState = newState;
|
this->targetState = newState;
|
||||||
|
|
||||||
if (this->targetState == Targets::TargetState::RUNNING) {
|
if (this->targetState != Targets::TargetState::STOPPED) {
|
||||||
this->clearInlineRegisterValues();
|
this->clearInlineRegisterValues();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ namespace Bloom::Widgets
|
|||||||
|
|
||||||
void TextInput::contextMenuEvent(QContextMenuEvent* event) {
|
void TextInput::contextMenuEvent(QContextMenuEvent* event) {
|
||||||
if (QMenu* menu = this->createStandardContextMenu()) {
|
if (QMenu* menu = this->createStandardContextMenu()) {
|
||||||
menu->setAttribute(Qt::WA_DeleteOnClose);
|
menu->setAttribute(Qt::WA_DeleteOnClose, true);
|
||||||
|
|
||||||
// Remove default icons
|
// Remove default icons
|
||||||
for (auto& action : menu->actions()) {
|
for (auto& action : menu->actions()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user