25 #include <QDialogButtonBox>
26 #include <QVBoxLayout>
35 template <
class ProxyT>
44 finder->setSearchMask(searchMask);
46 QDialogButtonBox* buttonBox =
47 new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel,
this);
49 setLayout(
new QVBoxLayout);
50 layout()->addWidget(
finder);
51 layout()->addWidget(buttonBox);
53 connect(buttonBox, &QDialogButtonBox::accepted,
this, &QDialog::accept);
54 connect(buttonBox, &QDialogButtonBox::rejected,
this, &QDialog::reject);
65 QString name =
finder->getSelectedProxyName();