get rid of QT3_SUPPORT and some cleanup

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14735 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2006-08-17 08:51:02 +00:00
parent 49852dca94
commit e6a07c092a

View File

@ -125,16 +125,16 @@ void QBibtexDialog::browsePressed()
unsigned int pres = 0;
for (int i = 0; i != styleCB->count(); ++i) {
if (fromqstr(styleCB->text(i)) == filen) {
if (fromqstr(styleCB->itemText(i)) == filen) {
present = true;
pres = i;
}
}
if (!present)
styleCB->insertItem(toqstr(filen),0);
styleCB->insertItem(0, toqstr(filen));
styleCB->setCurrentItem(pres);
styleCB->setCurrentIndex(pres);
form_->changed();
}
}
@ -154,11 +154,11 @@ void QBibtexDialog::browseBibPressed()
}
if (!present) {
add_->bibLW->addItem(toqstr(f));
add_->bibLW->addItem(f);
form_->changed();
}
add_->bibED->setText(toqstr(f));
add_->bibED->setText(f);
}
}