From 56be946751c66eca49b8b7861111901754f2ca59 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sat, 28 Oct 2006 09:19:37 +0000 Subject: [PATCH] delete unused code and comment. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15588 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiFontMetrics.h | 1 - src/frontends/qt4/GuiWorkArea.C | 3 --- src/frontends/qt4/QLPainter.C | 8 -------- src/frontends/qt4/QLPainter.h | 6 ------ 4 files changed, 18 deletions(-) diff --git a/src/frontends/qt4/GuiFontMetrics.h b/src/frontends/qt4/GuiFontMetrics.h index 924c0e0cd6..194c8f828d 100644 --- a/src/frontends/qt4/GuiFontMetrics.h +++ b/src/frontends/qt4/GuiFontMetrics.h @@ -22,7 +22,6 @@ // character width, so it is not necessary to provide ours. #if defined(Q_WS_MACX) || defined(Q_WS_WIN32) #define USE_LYX_FONTCACHE -#include #endif namespace lyx { diff --git a/src/frontends/qt4/GuiWorkArea.C b/src/frontends/qt4/GuiWorkArea.C index 74e2934615..8cc2c88a6a 100644 --- a/src/frontends/qt4/GuiWorkArea.C +++ b/src/frontends/qt4/GuiWorkArea.C @@ -493,7 +493,6 @@ void GuiWorkArea::resizeEvent(QResizeEvent * ev) { cursor_->hide(); verticalScrollBar()->setPageStep(viewport()->height()); - //paint_device_ = QPixmap(viewport()->width(), viewport()->height()); QAbstractScrollArea::resizeEvent(ev); resizeBufferView(); } @@ -557,8 +556,6 @@ void GuiWorkArea::paintEvent(QPaintEvent * ev) << "\n QWidget height\t" << this->height() << "\n viewport width\t" << viewport()->width() << "\n viewport height\t" << viewport()->height() - << "\n pixmap width\t" << pixmap_->width() - << "\n pixmap height\t" << pixmap_->height() << "\n QPaintEvent x\t" << e->rect().x() << "\n QPaintEvent y\t" << e->rect().y() << "\n QPaintEvent w\t" << e->rect().width() diff --git a/src/frontends/qt4/QLPainter.C b/src/frontends/qt4/QLPainter.C index 281365c8eb..72a5ce5903 100644 --- a/src/frontends/qt4/QLPainter.C +++ b/src/frontends/qt4/QLPainter.C @@ -15,7 +15,6 @@ #include "GuiApplication.h" #include "GuiFontMetrics.h" -#include "GuiWorkArea.h" #include "QLImage.h" #include "GuiApplication.h" @@ -25,15 +24,8 @@ #include "language.h" #include "LColor.h" - #include "support/unicode.h" -#include -#include -#include -#include - - using std::endl; using std::string; diff --git a/src/frontends/qt4/QLPainter.h b/src/frontends/qt4/QLPainter.h index 72048e89f3..8961fc29c0 100644 --- a/src/frontends/qt4/QLPainter.h +++ b/src/frontends/qt4/QLPainter.h @@ -15,15 +15,9 @@ #include "Painter.h" -#include - #include -class QPaintDevice; -class QPainter; class QString; -class QPixmap; -class QImage; namespace lyx { -- 2.39.5