25 #include <QDialogButtonBox>
26 #include <QVBoxLayout>
27 #include <qboxlayout.h>
29 #include <qdialogbuttonbox.h>
39 template <
class ProxyT>
48 finder->setSearchMask(searchMask);
50 QDialogButtonBox* buttonBox =
51 new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel,
this);
53 setLayout(
new QVBoxLayout);
54 layout()->addWidget(
finder);
55 layout()->addWidget(buttonBox);
57 connect(buttonBox, &QDialogButtonBox::accepted,
this, &QDialog::accept);
58 connect(buttonBox, &QDialogButtonBox::rejected,
this, &QDialog::reject);
68 QString name =
finder->getSelectedProxyName();