Set caption programmatically instead of through the ui file. Opens up for disregarding caption in l10n handling of ui files.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15043 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2006-09-18 16:55:54 +00:00
parent d6fb2e14a1
commit c8e78b04ba
3 changed files with 7 additions and 0 deletions

View File

@ -101,6 +101,9 @@ askForText_pimpl(docstring const & msg, docstring const & dflt)
docstring const title = bformat(_("LyX: %1$s"), msg);
QAskForTextDialog d(parent, toqstr(title), true);
// We try to go with the title set above.
// d.setCaption(qt_("LyX: Enter text"));
// less than ideal !
d.askLA->setText(toqstr('&' + msg));
d.askLE->setText(toqstr(dflt));

View File

@ -48,6 +48,8 @@ QBibtexDialog::QBibtexDialog(QBibtex * form)
form, SLOT(slotClose()));
add_ = new QBibtexAddDialogBase(this, "", true);
add_->setCaption(qt_("LyX: Add BibTeX Database"));
Qt2BC * bcview = new Qt2BC(add_bc_);
add_bc_.view(bcview);
add_bc_.bp(new OkCancelPolicy);

View File

@ -48,6 +48,8 @@ QCitationDialog::QCitationDialog(QCitation * form)
form, SLOT(slotClose()));
add_ = new QCitationFindDialogBase(this, "", true);
add_->setCaption(qt_("LyX: Add Citation"));
connect(add_->previousPB, SIGNAL(clicked()), this, SLOT(previous()));
connect(add_->nextPB, SIGNAL(clicked()), this, SLOT(next()));
connect(add_->availableLB, SIGNAL(currentChanged(QListBoxItem *)), this, SLOT(availableChanged()));