MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / initFrameTitle

Method initFrameTitle

src/plugins/debugger/dap/dapdebugger.cpp:1096–1118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1094}
1095
1096QHBoxLayout *DAPDebugger::initFrameTitle(const QString &frameName)
1097{
1098 if (frameName.isNull())
1099 return nullptr;
1100
1101 DPushButton *arrow = new DPushButton();
1102 arrow->setFocusPolicy(Qt::NoFocus);
1103 arrow->setIcon(QIcon::fromTheme("go-down"));
1104 arrow->setFixedSize(QSize(18, 18));
1105 arrow->setIconSize(QSize(8, 8));
1106 arrow->setFlat(true);
1107
1108 DLabel *stackTitleText = new DLabel();
1109 stackTitleText->setText(frameName);
1110
1111 QHBoxLayout *layout = new QHBoxLayout();
1112 layout->setContentsMargins(10, 0, 0, 0);
1113 layout->setSpacing(0);
1114 layout->addWidget(arrow);
1115 layout->addWidget(stackTitleText);
1116
1117 return layout;
1118}
1119
1120bool DAPDebugger::showStoppedBySignalMessageBox(QString meaning, QString name)
1121{

Callers

nothing calls this directly

Calls 5

setFixedSizeMethod · 0.80
isNullMethod · 0.45
setIconMethod · 0.45
setTextMethod · 0.45
addWidgetMethod · 0.45

Tested by

no test coverage detected