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

Method initUI

src/plugins/git/gui/gittabwidget.cpp:51–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void GitTabWidgetPrivate::initUI()
52{
53 QHBoxLayout *tabLayout = new QHBoxLayout;
54 tabLayout->setContentsMargins(0, 0, 0, 0);
55
56 tabBar = new DTabBar(q);
57 tabBar->setVisibleAddButton(false);
58 tabBar->setTabsClosable(true);
59 tabBar->setEnabledEmbedStyle(true);
60
61 closeBtn = new DToolButton(q);
62 closeBtn->setIcon(QIcon::fromTheme("edit-closeBtn"));
63
64 stackedWidget = new QStackedWidget(q);
65 stackedWidget->setContentsMargins(0, 0, 0, 0);
66
67 tabLayout->addWidget(tabBar, 1);
68 tabLayout->addWidget(closeBtn);
69
70 QVBoxLayout *mainLayout = new QVBoxLayout(q);
71 mainLayout->setContentsMargins(0, 0, 0, 0);
72
73 mainLayout->addLayout(tabLayout);
74 mainLayout->addWidget(stackedWidget);
75}
76
77void GitTabWidgetPrivate::initConnection()
78{

Callers 1

GitTabWidgetMethod · 0.45

Calls 3

setTabsClosableMethod · 0.80
setIconMethod · 0.45
addWidgetMethod · 0.45

Tested by

no test coverage detected