[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-cygwin
Subject:    RE: [PATCH] QCursor improvements in Qt2-win32
From:       Richard_Lärkäng <nouseforaname () home ! se>
Date:       2003-06-14 1:21:56
[Download RAW message or body]

Hi again!

Now I also have implemented QWidget::raise and lower.

Does anyone know if the qt2-win32 developers are still around?
Otherwise it would be nice to get access to cvs.

Richard Lärkäng

> Hi!
> 
> I am stuck with a windows computer at the moment,
> so I wanted to do some improvements to Qt.
> 
> This patch adds at least partial support of QCursor,
> QWidget::setCursor(...) should work, at least for
> those that I could figure out what the Windows
> equivalents were. Don't know about overrideCursor,
> as I'm not really sure how that works. And also
> own bitmap-cursors doesn't work, as I have to
> figure out how that works.
> 
> Richard Lärkäng
> 

["qwidget.patch" (application/octet-stream)]

Index: qwidget_win32.cpp
===================================================================
RCS file: /cvsroot/kde-cygwin/qt-2/src/kernel/Attic/qwidget_win32.cpp,v
retrieving revision 1.1.2.5
diff -u -b -r1.1.2.5 qwidget_win32.cpp
--- qwidget_win32.cpp	13 Mar 2003 01:46:56 -0000	1.1.2.5
+++ qwidget_win32.cpp	14 Jun 2003 01:18:55 -0000
@@ -1616,11 +1616,12 @@
 #ifdef DEBUG_QWIDGET
 	qDebug("qwidget_win.cpp: raise");
 #endif
-/*    QWidget *p = parentWidget();
+    QWidget *p = parentWidget();
     if ( p && p->childObjects && p->childObjects->findRef(this) >= 0 )
 	p->childObjects->append( p->childObjects->take() );
-    XRaiseWindow( x11Display(), winId() );
-*/}
+    BringWindowToTop(winId());
+//    XRaiseWindow( x11Display(), winId() );
+}
 
 /*!
   Lowers the widget to the bottom of the parent widget's stack.
@@ -1636,11 +1637,12 @@
 #ifdef DEBUG_QWIDGET
 	qDebug("qwidget_win.cpp: lower");
 #endif
-/*    QWidget *p = parentWidget();
+    QWidget *p = parentWidget();
     if ( p && p->childObjects && p->childObjects->findRef(this) >= 0 )
 	p->childObjects->insert( 0, p->childObjects->take() );
-    XLowerWindow( x11Display(), winId() );
-*/}
+    SetWindowPos(winId(), HWND_BOTTOM, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE );
+/    XLowerWindow( x11Display(), winId() );
+}
 
 
 /*!


_______________________________________________
kde-cygwin mailing list
kde-cygwin@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-cygwin


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic