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

List:       kde-commits
Subject:    KDE/kdelibs/kdeui/widgets
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2006-09-08 22:29:39
Message-ID: 1157754579.802796.18799.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 582284 by aseigo:

emit textChanged(QString) when cleared


 M  +3 -0      klineedit.cpp  


--- trunk/KDE/kdelibs/kdeui/widgets/klineedit.cpp #582283:582284
@@ -927,11 +927,14 @@
 {
     if ( d->clickInClear ) {
         if ( d->clearButton->underMouse() ) {
+            QString newText;
             if ( e->button() == Qt::MidButton ) {
+                QString newText = QApplication::clipboard()->text( QClipboard::Selection );
                 setText( QApplication::clipboard()->text( QClipboard::Selection ) );
             } else {
                 clear();
             }
+            emit textChanged( newText );
         }
 
         d->clickInClear = false;
[prev in list] [next in list] [prev in thread] [next in thread] 

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