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