diff --git a/src/frontends/qt2/ChangeLog b/src/frontends/qt2/ChangeLog index 1fb061fedc..2d63f4355f 100644 --- a/src/frontends/qt2/ChangeLog +++ b/src/frontends/qt2/ChangeLog @@ -1,3 +1,7 @@ +2002-09-11 John Levon + + * QSearchDialog.C: fill combo boxes + 2002-09-11 John Levon * qscreen.C: use repaint() not update() for immediate change diff --git a/src/frontends/qt2/QSearchDialog.C b/src/frontends/qt2/QSearchDialog.C index 41a65e449b..8a2ef204e6 100644 --- a/src/frontends/qt2/QSearchDialog.C +++ b/src/frontends/qt2/QSearchDialog.C @@ -23,6 +23,10 @@ QSearchDialog::QSearchDialog(QSearch * form) { connect(closePB, SIGNAL(clicked()), form_, SLOT(slotClose())); + findCO->setDuplicatesEnabled(false); + findCO->setInsertionPolicy(QComboBox::AtTop); + replaceCO->setDuplicatesEnabled(false); + replaceCO->setInsertionPolicy(QComboBox::AtTop); } @@ -54,6 +58,7 @@ void QSearchDialog::findClicked() caseCB->isChecked(), wordsCB->isChecked(), backwardsCB->isChecked()); + findCO->insertItem(findCO->currentText()); } @@ -65,6 +70,7 @@ void QSearchDialog::replaceClicked() caseCB->isChecked(), wordsCB->isChecked(), false); + replaceCO->insertItem(replaceCO->currentText()); }