#include <QAbstractItemModel>
#include <QCompleter>
+#include <QDialogButtonBox>
#include <QHeaderView>
#include <QLineEdit>
#include <QPushButton>
meaningsTV->setColumnCount(1);
meaningsTV->header()->hide();
- connect(closePB, SIGNAL(clicked()),
- this, SLOT(slotClose()));
+ connect(buttonBox, SIGNAL(clicked(QAbstractButton *)),
+ this, SLOT(slotButtonBox(QAbstractButton *)));
connect(replaceED, SIGNAL(returnPressed()),
this, SLOT(replaceClicked()));
connect(replaceED, SIGNAL(textChanged(QString)),
if (entryCO->completer())
entryCO->completer()->setCompletionMode(QCompleter::PopupCompletion);
- bc().setCancel(closePB);
+ bc().setCancel(buttonBox->button(QDialogButtonBox::Close));
bc().setApply(replacePB);
bc().addReadOnly(replaceED);
bc().addReadOnly(replacePB);