summaryrefslogtreecommitdiffstats
path: root/src/kmplayerview.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-03-02 02:05:22 -0600
committerTimothy Pearson <[email protected]>2012-03-02 02:05:22 -0600
commited7719e0e3d5f715cc18e861f12f7edcb1a76c20 (patch)
treeaecf1c8604bf933672c0e8258b18e4f6aaf1911a /src/kmplayerview.cpp
parent598bc036463e0904fcd30b85aade243825e6bf68 (diff)
downloadkmplayer-ed7719e0e3d5f715cc18e861f12f7edcb1a76c20.tar.gz
kmplayer-ed7719e0e3d5f715cc18e861f12f7edcb1a76c20.zip
Rename additional global functions and variables for tqt3
Diffstat (limited to 'src/kmplayerview.cpp')
-rw-r--r--src/kmplayerview.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/kmplayerview.cpp b/src/kmplayerview.cpp
index 512a62d..0696826 100644
--- a/src/kmplayerview.cpp
+++ b/src/kmplayerview.cpp
@@ -577,7 +577,7 @@ KDE_NO_EXPORT void View::playingStop () {
m_playing = false;
WId w = m_viewer->embeddedWinId ();
if (w)
- XClearWindow (qt_xdisplay(), w);
+ XClearWindow (tqt_xdisplay(), w);
m_view_area->resizeEvent (0L);
}
@@ -689,12 +689,12 @@ KDE_NO_CDTOR_EXPORT Viewer::Viewer (TQWidget *parent, View * view)
: QXEmbed (parent), m_plain_window (0), m_bgcolor (0), m_aspect (0.0),
m_view (view) {
/*XWindowAttributes xwa;
- XGetWindowAttributes (qt_xdisplay(), winId (), &xwa);
+ XGetWindowAttributes (tqt_xdisplay(), winId (), &xwa);
XSetWindowAttributes xswa;
xswa.background_pixel = 0;
xswa.border_pixel = 0;
xswa.colormap = xwa.colormap;
- create (XCreateWindow (qt_xdisplay (), parent->winId (), 0, 0, 10, 10, 0,
+ create (XCreateWindow (tqt_xdisplay (), parent->winId (), 0, 0, 10, 10, 0,
x11Depth (), InputOutput, (Visual*)x11Visual (),
CWBackPixel | CWBorderPixel | CWColormap, &xswa));*/
setAcceptDrops (true);
@@ -711,22 +711,22 @@ KDE_NO_EXPORT void Viewer::changeProtocol (QXEmbed::Protocol p) {
if (p == QXEmbed::XPLAIN) {
setProtocol (p);
if (!m_plain_window) {
- int scr = DefaultScreen (qt_xdisplay ());
+ int scr = DefaultScreen (tqt_xdisplay ());
m_plain_window = XCreateSimpleWindow (
- qt_xdisplay(),
+ tqt_xdisplay(),
m_view->winId (),
0, 0, width(), height(),
1,
- BlackPixel (qt_xdisplay(), scr),
- BlackPixel (qt_xdisplay(), scr));
+ BlackPixel (tqt_xdisplay(), scr),
+ BlackPixel (tqt_xdisplay(), scr));
embed (m_plain_window);
}
- XClearWindow (qt_xdisplay(), m_plain_window);
+ XClearWindow (tqt_xdisplay(), m_plain_window);
} else {
if (m_plain_window) {
- XDestroyWindow (qt_xdisplay(), m_plain_window);
+ XDestroyWindow (tqt_xdisplay(), m_plain_window);
m_plain_window = 0;
- XSync (qt_xdisplay (), false);
+ XSync (tqt_xdisplay (), false);
}
//setProtocol (p);
setProtocol (QXEmbed::XPLAIN);
@@ -737,7 +737,7 @@ KDE_NO_EXPORT void Viewer::changeProtocol (QXEmbed::Protocol p) {
KDE_NO_EXPORT void Viewer::windowChanged (WId w) {
kdDebug () << "windowChanged " << (int)w << endl;
if (w /*&& m_plain_window*/)
- XSelectInput (qt_xdisplay (), w,
+ XSelectInput (tqt_xdisplay (), w,
//KeyPressMask | KeyReleaseMask |
KeyPressMask |
//EnterWindowMask | LeaveWindowMask |
@@ -781,12 +781,12 @@ void Viewer::sendKeyEvent (int key) {
KeySym keysym = XStringToKeysym (buf);
XKeyEvent event = {
XKeyPress, 0, true,
- qt_xdisplay (), w, qt_xrootwin(), w,
+ tqt_xdisplay (), w, tqt_xrootwin(), w,
/*time*/ 0, 0, 0, 0, 0,
- 0, XKeysymToKeycode (qt_xdisplay (), keysym), true
+ 0, XKeysymToKeycode (tqt_xdisplay (), keysym), true
};
- XSendEvent (qt_xdisplay(), w, false, KeyPressMask, (XEvent *) &event);
- XFlush (qt_xdisplay ());
+ XSendEvent (tqt_xdisplay(), w, false, KeyPressMask, (XEvent *) &event);
+ XFlush (tqt_xdisplay ());
}
}
@@ -795,12 +795,12 @@ KDE_NO_EXPORT void Viewer::sendConfigureEvent () {
if (w) {
XConfigureEvent c = {
ConfigureNotify, 0UL, True,
- qt_xdisplay (), w, winId (),
+ tqt_xdisplay (), w, winId (),
x (), y (), width (), height (),
0, None, False
};
- XSendEvent(qt_xdisplay(),c.event,true,StructureNotifyMask,(XEvent*)&c);
- XFlush (qt_xdisplay ());
+ XSendEvent(tqt_xdisplay(),c.event,true,StructureNotifyMask,(XEvent*)&c);
+ XFlush (tqt_xdisplay ());
}
}
@@ -823,8 +823,8 @@ KDE_NO_EXPORT void Viewer::setCurrentBackgroundColor (const TQColor & c) {
setPaletteBackgroundColor (c);
WId w = embeddedWinId ();
if (w) {
- XSetWindowBackground (qt_xdisplay (), w, c.rgb ());
- XFlush (qt_xdisplay ());
+ XSetWindowBackground (tqt_xdisplay (), w, c.rgb ());
+ XFlush (tqt_xdisplay ());
}
}