From ffe8a83e053396df448e9413828527613ca3bd46 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:46:43 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- khtml/misc/helper.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'khtml/misc/helper.cpp') diff --git a/khtml/misc/helper.cpp b/khtml/misc/helper.cpp index eebba5015..f56a4ba92 100644 --- a/khtml/misc/helper.cpp +++ b/khtml/misc/helper.cpp @@ -22,25 +22,25 @@ */ #include "helper.h" #include "khtmllayout.h" -#include -#include +#include +#include #include #include #include -#include +#include #include #include #include -#include +#include using namespace DOM; using namespace khtml; namespace khtml { - QPainter *printpainter; + TQPainter *printpainter; } -void khtml::setPrintPainter( QPainter *printer ) +void khtml::setPrintPainter( TQPainter *printer ) { printpainter = printer; } @@ -78,9 +78,9 @@ QRgb khtml::qRgbaFromHsla(double h, double s, double l, double a) * @param obj render object * @return the background color. It is guaranteed that a valid color is returned. */ -QColor khtml::retrieveBackgroundColor(const RenderObject *obj) +TQColor khtml::retrieveBackgroundColor(const RenderObject *obj) { - QColor result; + TQColor result; while (!obj->isCanvas()) { result = obj->style()->backgroundColor(); if (result.isValid()) return result; @@ -95,7 +95,7 @@ QColor khtml::retrieveBackgroundColor(const RenderObject *obj) /** checks whether the given colors have enough contrast * @returns @p true if contrast is ok. */ -bool khtml::hasSufficientContrast(const QColor &c1, const QColor &c2) +bool khtml::hasSufficientContrast(const TQColor &c1, const TQColor &c2) { // New version from Germain Garand, better suited for contrast measurement #if 1 -- cgit v1.2.3