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

List:       kde-core-devel
Subject:    Re: QLineEdit (and Klipper)
From:       Scott Wheeler <scott () slackorama ! net>
Date:       2002-02-26 15:04:52
[Download RAW message or body]

On Thursday 21 February 2002 08:41 am, Scott Wheeler wrote:
> On Thursday 21 February 2002 02:38 am, Lubos Lunak wrote:
> > On Wed 20. February 2002 23:13, Scott Wheeler wrote:
> >
> >  Sounds like a good idea (who uses non-Qt apps anyway >;)  ).
>
> Ok, I'll make a patch.

Here's the promised patch.

As a reminder, this connects the QClipboard selectionChanged() signal to 
Klipper's newClipData() slot.  Currently this is implemented by polling every 
second, which is needed for non-Qt apps.  However, this patch will also make 
the synchronization instant (well, almost ;-) ) in Qt/KDE apps when the 
"Synchronize contents of the clipboard and the selection" in Klipper is 
checked.

Could one of the Klipper maintainers take a look at this?

Also, about all of the QLineEdit stuff, I'll type up something for qt-bugs in 
the next few minutes.

-Scott
["klipper-toplevel.cpp.patch" (text/x-diff)]

--- toplevel.cpp.back	Tue Feb 26 09:46:21 2002
+++ toplevel.cpp	Tue Feb 26 09:47:26 2002
@@ -125,6 +125,7 @@
     m_checkTimer = new QTimer(this, "timer");
     m_checkTimer->start(1000, FALSE);
     connect(m_checkTimer, SIGNAL(timeout()), this, SLOT(newClipData()));
+    connect(clip, SIGNAL(selectionChanged()), this, SLOT(newClipData()));
     m_pixmap = new QPixmap( const_cast<const char**>(mouse));
     resize( m_pixmap->size() );
 


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

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