diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-26 00:41:16 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-26 00:41:16 +0000 |
commit | 698569f8428ca088f764d704034a1330517b98c0 (patch) | |
tree | bf45be6946ebbbee9cce5a5bcf838f4c952d87e6 /kivio | |
parent | 2785103a6bd4de55bd26d79e34d0fdd4b329a73a (diff) | |
download | koffice-698569f8428ca088f764d704034a1330517b98c0.tar.gz koffice-698569f8428ca088f764d704034a1330517b98c0.zip |
Finish rebranding of Krita as Chalk
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238363 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kivio')
-rw-r--r-- | kivio/kiviopart/stencilbardockmanager.cpp | 16 | ||||
-rw-r--r-- | kivio/kiviopart/stencilbardockmanager.h | 8 |
2 files changed, 14 insertions, 10 deletions
diff --git a/kivio/kiviopart/stencilbardockmanager.cpp b/kivio/kiviopart/stencilbardockmanager.cpp index 606c6a93..a0dca0ee 100644 --- a/kivio/kiviopart/stencilbardockmanager.cpp +++ b/kivio/kiviopart/stencilbardockmanager.cpp @@ -308,14 +308,14 @@ void StencilBarDockManager::setAllStackBarsShown(bool shown) KoToolDockMoveManager::KoToolDockMoveManager() : TQObject() { -#if defined TQ_WS_X11 && !defined K_WS_TQTONLY +#if defined Q_WS_X11 && !defined K_WS_TQTONLY XGCValues gv; #endif working=false; noLast=true; -#if defined TQ_WS_X11 && !defined K_WS_TQTONLY +#if defined Q_WS_X11 && !defined K_WS_TQTONLY scr = qt_xscreen(); root = qt_xrootwin(); @@ -386,7 +386,7 @@ void KoToolDockMoveManager::doMoveInternal() if (check(xp, yp, w, h)) { paintProcess(false,xp, yp, w, h); -#if defined TQ_WS_X11 && !defined K_WS_TQTONLY +#if defined Q_WS_X11 && !defined K_WS_TQTONLY XFlush(qt_xdisplay()); XSync(qt_xdisplay(),false); #endif @@ -402,7 +402,7 @@ void KoToolDockMoveManager::stop() TQApplication::restoreOverrideCursor(); paintProcess(); -#if defined TQ_WS_X11 && !defined K_WS_TQTONLY +#if defined Q_WS_X11 && !defined K_WS_TQTONLY XFlush(qt_xdisplay()); #endif @@ -424,7 +424,7 @@ void KoToolDockMoveManager::setGeometry(int _x, int _y, int _w, int _h) check(_x, _y, _w, _h, true); paintProcess(false,_x, _y, _w, _h); -#if defined TQ_WS_X11 && !defined K_WS_TQTONLY +#if defined Q_WS_X11 && !defined K_WS_TQTONLY XFlush(qt_xdisplay()); XSync(qt_xdisplay(),false); #endif @@ -440,7 +440,7 @@ void KoToolDockMoveManager::drawRectangle( int _x, int _y, int _w, int _h) ow = _w; oh = _h; -#if defined TQ_WS_X11 && !defined K_WS_TQTONLY +#if defined Q_WS_X11 && !defined K_WS_TQTONLY XDrawRectangle(qt_xdisplay(), root, rootgc, _x, _y, _w, _h); #endif noLast = false; @@ -454,7 +454,7 @@ void KoToolDockMoveManager::paintProcess( bool onlyDelete, int _x, int _y, int _ if ( ox == _x && oy == _y && ow ==_w && oh == _h ) return; -#if defined TQ_WS_X11 && !defined K_WS_TQTONLY +#if defined Q_WS_X11 && !defined K_WS_TQTONLY XDrawRectangle(qt_xdisplay(), root, rootgc, ox, oy, ow, oh); #endif noLast = true; @@ -546,7 +546,7 @@ void KoToolDockMoveManager::doResizeInternal() if (check(xp, yp, w, h)) { paintProcess(false,xp, yp, w, h); -#if defined TQ_WS_X11 && !defined K_WS_TQTONLY +#if defined Q_WS_X11 && !defined K_WS_TQTONLY XFlush(qt_xdisplay()); XSync(qt_xdisplay(),false); #endif diff --git a/kivio/kiviopart/stencilbardockmanager.h b/kivio/kiviopart/stencilbardockmanager.h index 12eb18c9..8894def1 100644 --- a/kivio/kiviopart/stencilbardockmanager.h +++ b/kivio/kiviopart/stencilbardockmanager.h @@ -19,9 +19,13 @@ #ifndef STENCILBARDOCKMANAGER_H #define STENCILBARDOCKMANAGER_H +#ifdef Q_MOC_RUN +#define Q_WS_X11 +#endif // Q_MOC_RUN + #include <tqwidget.h> #include <tqptrlist.h> -#if defined TQ_WS_X11 && !defined K_WS_TQTONLY +#if defined Q_WS_X11 && !defined K_WS_TQTONLY #include <X11/X.h> #include <X11/Xlib.h> #include <X11/Xutil.h> @@ -167,7 +171,7 @@ class KoToolDockMoveManager: public TQObject int offX, offY; /* X-stuff */ -#if defined TQ_WS_X11 && !defined K_WS_TQTONLY +#if defined Q_WS_X11 && !defined K_WS_TQTONLY Window root; GC rootgc; int scr; |