mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
8a57064442
commit
7ecb04d91e
@ -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)));
|
||||
}
|
||||
|
||||
|
||||
|
@ -14,7 +14,8 @@
|
||||
#include "QViewSourceDialog.h"
|
||||
#include "QViewSource.h"
|
||||
|
||||
#include <qpushbutton.h>
|
||||
#include <QPushButton>
|
||||
#include <QCloseEvent>
|
||||
|
||||
|
||||
namespace lyx {
|
||||
|
Loading…
Reference in New Issue
Block a user