fill combo boxes in search dialog

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5267 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-09-11 16:12:06 +00:00
parent 7bf3b1dd13
commit 13daf48c60
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2002-09-11 John Levon <levon@movementarian.org>
* QSearchDialog.C: fill combo boxes
2002-09-11 John Levon <levon@movementarian.org>
* qscreen.C: use repaint() not update() for immediate change

View File

@ -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());
}