get rid of QT3_SUPPORT and some cleanup

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14768 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2006-08-17 09:01:46 +00:00
parent 8a57064442
commit 7ecb04d91e
2 changed files with 4 additions and 3 deletions

View File

@ -88,7 +88,7 @@ void QViewSource::build_dialog()
highlighter = new latexHighlighter(dialog_->viewSourceTV->document());
//
dialog_->viewSourceTV->setReadOnly(true);
dialog_->viewSourceTV->setTextFormat(Qt::PlainText);
///dialog_->viewSourceTV->setAcceptRichText(false);
// this is personal. I think source code should be in fixed-size font
QFont font(toqstr(lyx_gui::typewriter_font_name()));
font.setFixedPitch(true);
@ -102,7 +102,7 @@ void QViewSource::build_dialog()
void QViewSource::update_source()
{
bool fullSource = dialog_->viewFullSourceCB->isChecked();
dialog_->viewSourceTV->setText(toqstr(controller().updateContent(fullSource)));
dialog_->viewSourceTV->setPlainText(toqstr(controller().updateContent(fullSource)));
}

View File

@ -14,7 +14,8 @@
#include "QViewSourceDialog.h"
#include "QViewSource.h"
#include <qpushbutton.h>
#include <QPushButton>
#include <QCloseEvent>
namespace lyx {