mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-08 10:51:03 +00:00
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:
parent
d6fb2e14a1
commit
c8e78b04ba
@ -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));
|
||||
|
@ -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);
|
||||
|
@ -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()));
|
||||
|
Loading…
Reference in New Issue
Block a user