MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / CustomCommandsPage

Method CustomCommandsPage

launcher/ui/pages/global/CustomCommandsPage.cpp:42–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40#include <QTabBar>
41
42CustomCommandsPage::CustomCommandsPage(QWidget* parent): QWidget(parent)
43{
44
45 auto verticalLayout = new QVBoxLayout(this);
46 verticalLayout->setObjectName(QStringLiteral("verticalLayout"));
47 verticalLayout->setContentsMargins(0, 0, 0, 0);
48
49 auto tabWidget = new QTabWidget(this);
50 tabWidget->setObjectName(QStringLiteral("tabWidget"));
51 commands = new CustomCommands(this);
52 commands->setContentsMargins(6, 6, 6, 6);
53 tabWidget->addTab(commands, "Foo");
54 tabWidget->tabBar()->hide();
55 verticalLayout->addWidget(tabWidget);
56 loadSettings();
57}
58
59CustomCommandsPage::~CustomCommandsPage()
60{

Callers

nothing calls this directly

Calls 1

hideMethod · 0.80

Tested by

no test coverage detected