summaryrefslogtreecommitdiffstats
path: root/khtml/misc/helper.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /khtml/misc/helper.cpp
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'khtml/misc/helper.cpp')
-rw-r--r--khtml/misc/helper.cpp18
1 files changed, 9 insertions, 9 deletions
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 <qmap.h>
-#include <qpainter.h>
+#include <tqmap.h>
+#include <tqpainter.h>
#include <dom/dom_string.h>
#include <xml/dom_stringimpl.h>
#include <rendering/render_object.h>
-#include <qptrlist.h>
+#include <tqptrlist.h>
#include <kstaticdeleter.h>
#include <kapplication.h>
#include <kconfig.h>
-#include <qtooltip.h>
+#include <tqtooltip.h>
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