]> git.lyx.org Git - features.git/commitdiff
Set caption programmatically instead of through the ui file. Opens up for disregardin...
authorLars Gullik Bjønnes <larsbj@gullik.org>
Mon, 18 Sep 2006 16:55:54 +0000 (16:55 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Mon, 18 Sep 2006 16:55:54 +0000 (16:55 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15043 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt3/Alert_pimpl.C
src/frontends/qt3/QBibtexDialog.C
src/frontends/qt3/QCitationDialog.C

index 4cf4c1565ebe633f021b86b6d778dac9b75e87f4..f5bf21fa1a921112eb3c799acec99e084b1c751d 100644 (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));
index d4d060fac89619fc81beba83209fe2439c42584c..1eb19b3c2f33f8c0c495b078b05bfabad6a8c166 100644 (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);
index 1c996e619b3f1918ad4b8bcf9ffa5be969453e73..3c8cd1c920de81c90a8d4023b82f098fb28bb95f 100644 (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()));