mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-06 00:10:59 +00:00
get rid of QT3_SUPPORT and some cleanup
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14741 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
766be8d03c
commit
4a2016826d
@ -41,7 +41,7 @@ QCitationDialog::QCitationDialog(Dialog & dialog, QCitation * form)
|
|||||||
{
|
{
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
|
|
||||||
setCaption(toqstr("LyX: " + getTitle()));
|
setWindowTitle(toqstr("LyX: " + getTitle()));
|
||||||
|
|
||||||
selectedLV->setModel(form_->selected());
|
selectedLV->setModel(form_->selected());
|
||||||
availableLV->setModel(form_->available());
|
availableLV->setModel(form_->available());
|
||||||
@ -66,7 +66,7 @@ QCitationDialog::~QCitationDialog()
|
|||||||
|
|
||||||
void QCitationDialog::apply()
|
void QCitationDialog::apply()
|
||||||
{
|
{
|
||||||
int const choice = std::max(0, citationStyleCO->currentItem());
|
int const choice = std::max(0, citationStyleCO->currentIndex());
|
||||||
style_ = choice;
|
style_ = choice;
|
||||||
bool const full = fulllistCB->isChecked();
|
bool const full = fulllistCB->isChecked();
|
||||||
bool const force = forceuppercaseCB->isChecked();
|
bool const force = forceuppercaseCB->isChecked();
|
||||||
@ -170,16 +170,16 @@ void QCitationDialog::updateStyle()
|
|||||||
|
|
||||||
// restore the latest natbib style
|
// restore the latest natbib style
|
||||||
if (style_ >= 0 && style_ < citationStyleCO->count())
|
if (style_ >= 0 && style_ < citationStyleCO->count())
|
||||||
citationStyleCO->setCurrentItem(style_);
|
citationStyleCO->setCurrentIndex(style_);
|
||||||
else
|
else
|
||||||
citationStyleCO->setCurrentItem(0);
|
citationStyleCO->setCurrentIndex(0);
|
||||||
|
|
||||||
fulllistCB->setChecked(false);
|
fulllistCB->setChecked(false);
|
||||||
forceuppercaseCB->setChecked(false);
|
forceuppercaseCB->setChecked(false);
|
||||||
|
|
||||||
if (cit != styles.end()) {
|
if (cit != styles.end()) {
|
||||||
int const i = int(cit - styles.begin());
|
int const i = int(cit - styles.begin());
|
||||||
citationStyleCO->setCurrentItem(i);
|
citationStyleCO->setCurrentIndex(i);
|
||||||
fulllistCB->setChecked(cs.full);
|
fulllistCB->setChecked(cs.full);
|
||||||
forceuppercaseCB->setChecked(cs.forceUCase);
|
forceuppercaseCB->setChecked(cs.forceUCase);
|
||||||
}
|
}
|
||||||
@ -188,7 +188,7 @@ void QCitationDialog::updateStyle()
|
|||||||
|
|
||||||
void QCitationDialog::fillStyles()
|
void QCitationDialog::fillStyles()
|
||||||
{
|
{
|
||||||
int const orig = citationStyleCO->currentItem();
|
int const orig = citationStyleCO->currentIndex();
|
||||||
|
|
||||||
citationStyleCO->clear();
|
citationStyleCO->clear();
|
||||||
|
|
||||||
@ -215,7 +215,7 @@ void QCitationDialog::fillStyles()
|
|||||||
citationStyleCO->insertItems(0, sty);
|
citationStyleCO->insertItems(0, sty);
|
||||||
|
|
||||||
if (orig != -1 && orig < citationStyleCO->count())
|
if (orig != -1 && orig < citationStyleCO->count())
|
||||||
citationStyleCO->setCurrentItem(orig);
|
citationStyleCO->setCurrentIndex(orig);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user