MCPcopy Create free account
hub / github.com/KDAB/GammaRay / MethodInvocationDialog

Method MethodInvocationDialog

ui/methodinvocationdialog.cpp:23–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21using namespace GammaRay;
22
23MethodInvocationDialog::MethodInvocationDialog(QWidget *parent)
24 : QDialog(parent)
25 , ui(new Ui::MethodInvocationDialog)
26 , m_stateManager(this)
27{
28 ui->setupUi(this);
29
30 ui->argumentView->header()->setObjectName("argumentViewHeader");
31 ui->argumentView->setDeferredResizeMode(0, QHeaderView::ResizeToContents);
32 ui->argumentView->setDeferredResizeMode(1, QHeaderView::Stretch);
33 ui->argumentView->setDeferredResizeMode(2, QHeaderView::ResizeToContents);
34
35 ui->buttonBox->button(QDialogButtonBox::Ok)->setText(tr("Invoke"));
36 connect(ui->buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
37 connect(ui->buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
38
39 ui->connectionTypeComboBox->addItem(tr("Auto"), QVariant::fromValue(Qt::AutoConnection));
40 ui->connectionTypeComboBox->addItem(tr("Direct"), QVariant::fromValue(Qt::DirectConnection));
41 ui->connectionTypeComboBox->addItem(tr("Queued"), QVariant::fromValue(Qt::QueuedConnection));
42}
43
44MethodInvocationDialog::~MethodInvocationDialog() = default;
45

Callers

nothing calls this directly

Calls 3

setDeferredResizeModeMethod · 0.80
addItemMethod · 0.80
setTextMethod · 0.45

Tested by

no test coverage detected