From e916170647cc09d1c0720b052feb31cb15bbaacd Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 10 May 2007 10:44:16 +0000 Subject: [PATCH] Use QTextEdit::setPlainText instead of QTextEdit::setText, because the later is not available in Qt 4.1. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18257 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/QDocument.cpp | 2 +- src/frontends/qt4/QInclude.cpp | 2 +- src/frontends/qt4/QListings.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontends/qt4/QDocument.cpp b/src/frontends/qt4/QDocument.cpp index 5174eaa66c..200a3892b3 100644 --- a/src/frontends/qt4/QDocument.cpp +++ b/src/frontends/qt4/QDocument.cpp @@ -1200,7 +1200,7 @@ void QDocumentDialog::updateParams(BufferParams const & params) // break listings_params to multiple lines string lstparams = InsetListingsParams(params.listings_params).separatedParams(); - textLayoutModule->listingsED->setText(toqstr(lstparams)); + textLayoutModule->listingsED->setPlainText(toqstr(lstparams)); if (!params.options.empty()) { latexModule->optionsLE->setText( diff --git a/src/frontends/qt4/QInclude.cpp b/src/frontends/qt4/QInclude.cpp index 283dda8389..007a89ae8e 100644 --- a/src/frontends/qt4/QInclude.cpp +++ b/src/frontends/qt4/QInclude.cpp @@ -235,7 +235,7 @@ void QInclude::update_contents() dialog_->listingsGB->setEnabled(true); dialog_->listingsED->setEnabled(true); InsetListingsParams par(params.getOptions()); - dialog_->listingsED->setText(toqstr(par.separatedParams())); + dialog_->listingsED->setPlainText(toqstr(par.separatedParams())); } } diff --git a/src/frontends/qt4/QListings.cpp b/src/frontends/qt4/QListings.cpp index 6b3d5c0457..55ec960713 100644 --- a/src/frontends/qt4/QListings.cpp +++ b/src/frontends/qt4/QListings.cpp @@ -121,7 +121,7 @@ void QListings::apply() void QListings::update_contents() { InsetListingsParams & params = controller().params(); - dialog_->listingsED->setText(toqstr(params.separatedParams())); + dialog_->listingsED->setPlainText(toqstr(params.separatedParams())); if (params.isInline()) dialog_->inlineCB->setChecked(true);