mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 11:52:25 +00:00
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:
parent
49852dca94
commit
e6a07c092a
@ -125,16 +125,16 @@ void QBibtexDialog::browsePressed()
|
|||||||
unsigned int pres = 0;
|
unsigned int pres = 0;
|
||||||
|
|
||||||
for (int i = 0; i != styleCB->count(); ++i) {
|
for (int i = 0; i != styleCB->count(); ++i) {
|
||||||
if (fromqstr(styleCB->text(i)) == filen) {
|
if (fromqstr(styleCB->itemText(i)) == filen) {
|
||||||
present = true;
|
present = true;
|
||||||
pres = i;
|
pres = i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!present)
|
if (!present)
|
||||||
styleCB->insertItem(toqstr(filen),0);
|
styleCB->insertItem(0, toqstr(filen));
|
||||||
|
|
||||||
styleCB->setCurrentItem(pres);
|
styleCB->setCurrentIndex(pres);
|
||||||
form_->changed();
|
form_->changed();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -154,11 +154,11 @@ void QBibtexDialog::browseBibPressed()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!present) {
|
if (!present) {
|
||||||
add_->bibLW->addItem(toqstr(f));
|
add_->bibLW->addItem(f);
|
||||||
form_->changed();
|
form_->changed();
|
||||||
}
|
}
|
||||||
|
|
||||||
add_->bibED->setText(toqstr(f));
|
add_->bibED->setText(f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user