diff options
Diffstat (limited to 'tdehtml/ecma/kjs_window.cpp')
-rw-r--r-- | tdehtml/ecma/kjs_window.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tdehtml/ecma/kjs_window.cpp b/tdehtml/ecma/kjs_window.cpp index 3a1f7c897..96d703833 100644 --- a/tdehtml/ecma/kjs_window.cpp +++ b/tdehtml/ecma/kjs_window.cpp @@ -42,7 +42,7 @@ #include <tdeparts/browserinterface.h> #include <twin.h> -#if defined Q_WS_X11 && ! defined K_WS_QTONLY +#if defined TQ_WS_X11 && ! defined K_WS_QTONLY #include <twinmodule.h> // schroder #endif @@ -111,7 +111,7 @@ namespace KJS { TQGuardedPtr<TDEHTMLPart> part; }; -#ifdef Q_WS_QWS +#ifdef TQ_WS_QWS class KonquerorFunc : public DOMFunction { public: KonquerorFunc(ExecState *exec, const Konqueror* k, const char* name) @@ -160,7 +160,7 @@ Value Screen::get(ExecState *exec, const Identifier &p) const Value Screen::getValueProperty(ExecState *exec, int token) const { -#if defined Q_WS_X11 && ! defined K_WS_QTONLY +#if defined TQ_WS_X11 && ! defined K_WS_QTONLY KWinModule info(0, KWinModule::INFO_DESKTOP); #endif TQWidget *thisWidget = Window::retrieveActive(exec)->part()->widget(); @@ -177,7 +177,7 @@ Value Screen::getValueProperty(ExecState *exec, int token) const return Number(m.depth()); } case AvailLeft: { -#if defined Q_WS_X11 && ! defined K_WS_QTONLY +#if defined TQ_WS_X11 && ! defined K_WS_QTONLY TQRect clipped = info.workArea().intersect(sg); return Number(clipped.x()-sg.x()); #else @@ -185,7 +185,7 @@ Value Screen::getValueProperty(ExecState *exec, int token) const #endif } case AvailTop: { -#if defined Q_WS_X11 && ! defined K_WS_QTONLY +#if defined TQ_WS_X11 && ! defined K_WS_QTONLY TQRect clipped = info.workArea().intersect(sg); return Number(clipped.y()-sg.y()); #else @@ -193,7 +193,7 @@ Value Screen::getValueProperty(ExecState *exec, int token) const #endif } case AvailHeight: { -#if defined Q_WS_X11 && ! defined K_WS_QTONLY +#if defined TQ_WS_X11 && ! defined K_WS_QTONLY TQRect clipped = info.workArea().intersect(sg); return Number(clipped.height()); #else @@ -201,7 +201,7 @@ Value Screen::getValueProperty(ExecState *exec, int token) const #endif } case AvailWidth: { -#if defined Q_WS_X11 && ! defined K_WS_QTONLY +#if defined TQ_WS_X11 && ! defined K_WS_QTONLY TQRect clipped = info.workArea().intersect(sg); return Number(clipped.width()); #else @@ -848,7 +848,7 @@ Value Window::get(ExecState *exec, const Identifier &p) const const_cast<Window *>(this)->put(exec, "clientInformation", nav, DontDelete|ReadOnly|Internal); return nav; } -#ifdef Q_WS_QWS +#ifdef TQ_WS_QWS case _Konqueror: { Value k( new Konqueror(part) ); const_cast<Window *>(this)->put(exec, "konqueror", k, DontDelete|ReadOnly|Internal); @@ -860,7 +860,7 @@ Value Window::get(ExecState *exec, const Identifier &p) const case OuterHeight: case OuterWidth: { -#if defined Q_WS_X11 && ! defined K_WS_QTONLY +#if defined TQ_WS_X11 && ! defined K_WS_QTONLY if (!part->widget()) return Number(0); KWin::WindowInfo inf = KWin::windowInfo(part->widget()->topLevelWidget()->winId()); @@ -2865,7 +2865,7 @@ Value HistoryFunc::tryCall(ExecState *exec, Object &thisObj, const List &args) ///////////////////////////////////////////////////////////////////////////// -#ifdef Q_WS_QWS +#ifdef TQ_WS_QWS const ClassInfo Konqueror::info = { "Konqueror", 0, 0, 0 }; |