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

List:       kde-devel
Subject:    Re: fix for QClipboard on X11
From:       "Bradley T. Hughes" <bhughes () trolltech ! com>
Date:       2000-09-20 19:20:52
[Download RAW message or body]

On Wed, 20 Sep 2000, Dirk Mueller wrote:

> On Mit, 20 Sep 2000, Bradley T. Hughes wrote:
> 
> > I am attaching this fix that I have just made for the 2.2.1 release.  I
> > believe that this will finally fix all the problems people have been
> > having with crashes/xlib errors (wrt the clipboard)...  If I could get
> > some stress testing, I would be *very* happy ;)
> 
> well, please send the qclipboard.h diff as well ;)

oops... here it is :)

> Dirk
> 

--
Bradley T. Hughes <bhughes@trolltech.com>
Waldemar Thranes gt. 98B N-0175 Oslo, Norway
Office: +47 21 60 48 92
Mobile: +47 92 01 97 81

["clipboard.h.diff" (TEXT/PLAIN)]

--- /usr/tmp/qt-2.2.0/src/kernel/qclipboard.h	Sun Sep  3 19:38:13 2000
+++ kernel/qclipboard.h	Thu Sep 14 21:02:08 2000
@@ -1,5 +1,5 @@
 /****************************************************************************
-** $Id: qt/src/kernel/qclipboard.h   2.2.0   edited 2000-08-25 $
+** $Id: //depot/qt/main/src/kernel/qclipboard.h#25 $
 **
 ** Definition of QClipboard class
 **
@@ -52,11 +52,15 @@ class Q_EXPORT QClipboard : public QObje
     Q_OBJECT
 private:
     QClipboard( QObject *parent=0, const char *name=0 );
-   ~QClipboard();
+    ~QClipboard();
 
 public:
     void	clear();
 
+#if defined(_WS_X11_)
+    bool ownsSelection() const;
+#endif
+    
 #ifndef QT_NO_MIMECLIPBOARD
     QMimeSource* data() const;
     void  setData( QMimeSource* );
@@ -74,7 +78,7 @@ signals:
     void	dataChanged();
 
 private slots:
-    void	ownerDestroyed();
+void	ownerDestroyed();
 
 protected:
     void	connectNotify( const char * );
@@ -84,12 +88,12 @@ protected:
     friend class QBaseApplication;
     friend class QDragManager;
     friend class QMimeSource;
-    
+
 private:	// Disabled copy constructor and operator=
-#if defined(_WS_X11_)    
+#if defined(_WS_X11_)
     void clobber();
 #endif
-    
+
 #if defined(Q_DISABLE_COPY)
     QClipboard( const QClipboard & );
     QClipboard &operator=( const QClipboard & );

>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


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

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