From c8e78b04ba6292314e45810c33c22fd112a814bd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Mon, 18 Sep 2006 16:55:54 +0000 Subject: [PATCH] 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 --- src/frontends/qt3/Alert_pimpl.C | 3 +++ src/frontends/qt3/QBibtexDialog.C | 2 ++ src/frontends/qt3/QCitationDialog.C | 2 ++ 3 files changed, 7 insertions(+) diff --git a/src/frontends/qt3/Alert_pimpl.C b/src/frontends/qt3/Alert_pimpl.C index 4cf4c1565e..f5bf21fa1a 100644 --- a/src/frontends/qt3/Alert_pimpl.C +++ b/src/frontends/qt3/Alert_pimpl.C @@ -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)); diff --git a/src/frontends/qt3/QBibtexDialog.C b/src/frontends/qt3/QBibtexDialog.C index d4d060fac8..1eb19b3c2f 100644 --- a/src/frontends/qt3/QBibtexDialog.C +++ b/src/frontends/qt3/QBibtexDialog.C @@ -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); diff --git a/src/frontends/qt3/QCitationDialog.C b/src/frontends/qt3/QCitationDialog.C index 1c996e619b..3c8cd1c920 100644 --- a/src/frontends/qt3/QCitationDialog.C +++ b/src/frontends/qt3/QCitationDialog.C @@ -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())); -- 2.39.5