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
This commit is contained in:
Jean-Marc Lasgouttes 2007-05-10 10:44:16 +00:00
parent aeeac15128
commit e916170647
3 changed files with 3 additions and 3 deletions

View File

@ -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(

View File

@ -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()));
}
}

View File

@ -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);