Skip to content

Commit 8424b18

Browse files
Copilotxusheng6
andcommitted
Apply clang-format to stack widget files
Co-authored-by: xusheng6 <[email protected]>
1 parent bcefd84 commit 8424b18

File tree

2 files changed

+14
-20
lines changed

2 files changed

+14
-20
lines changed

ui/stackwidget.cpp

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -472,20 +472,17 @@ void DebugStackWidget::copy()
472472
continue;
473473

474474
DebugStackItem item = m_model->getRow(row);
475-
475+
476476
// Format: Offset Address Value Hint
477477
QString offsetStr;
478478
ptrdiff_t offset = item.offset();
479479
if (offset < 0)
480480
offsetStr = QString::asprintf("-0x%" PRIx64, (uint64_t)-offset);
481481
else
482482
offsetStr = QString::asprintf("0x%" PRIx64, (uint64_t)offset);
483-
484-
text += QString::asprintf("%s 0x%" PRIx64 " 0x%" PRIx64 " %s",
485-
offsetStr.toStdString().c_str(),
486-
item.address(),
487-
item.value(),
488-
item.hint().c_str());
483+
484+
text += QString::asprintf("%s 0x%" PRIx64 " 0x%" PRIx64 " %s", offsetStr.toStdString().c_str(), item.address(),
485+
item.value(), item.hint().c_str());
489486
}
490487

491488
auto* clipboard = QGuiApplication::clipboard();
@@ -500,27 +497,24 @@ void DebugStackWidget::copyAll()
500497
{
501498
QString text;
502499
int rowCount = m_model->rowCount();
503-
500+
504501
for (int row = 0; row < rowCount; row++)
505502
{
506503
if (row > 0)
507504
text += "\n";
508505

509506
DebugStackItem item = m_model->getRow(row);
510-
507+
511508
// Format: Offset Address Value Hint
512509
QString offsetStr;
513510
ptrdiff_t offset = item.offset();
514511
if (offset < 0)
515512
offsetStr = QString::asprintf("-0x%" PRIx64, (uint64_t)-offset);
516513
else
517514
offsetStr = QString::asprintf("0x%" PRIx64, (uint64_t)offset);
518-
519-
text += QString::asprintf("%s 0x%" PRIx64 " 0x%" PRIx64 " %s",
520-
offsetStr.toStdString().c_str(),
521-
item.address(),
522-
item.value(),
523-
item.hint().c_str());
515+
516+
text += QString::asprintf("%s 0x%" PRIx64 " 0x%" PRIx64 " %s", offsetStr.toStdString().c_str(), item.address(),
517+
item.value(), item.hint().c_str());
524518
}
525519

526520
auto* clipboard = QGuiApplication::clipboard();
@@ -531,10 +525,10 @@ void DebugStackWidget::copyAll()
531525
}
532526

533527

534-
//void DebugStackWidget::notifyFontChanged()
528+
// void DebugStackWidget::notifyFontChanged()
535529
//{
536-
// m_delegate->updateFonts();
537-
//}
530+
// m_delegate->updateFonts();
531+
// }
538532

539533

540534
void DebugStackWidget::updateContent()

ui/stackwidget.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ class DebugStackWidget : public QWidget
149149
virtual void contextMenuEvent(QContextMenuEvent* event) override;
150150
bool selectionNotEmpty();
151151

152-
//void shouldBeVisible()
152+
// void shouldBeVisible()
153153

154-
//virtual void notifyFontChanged() override;
154+
// virtual void notifyFontChanged() override;
155155

156156

157157
public:

0 commit comments

Comments
 (0)