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

List:       kde-commits
Subject:    extragear/network/kmldonkey/kmldonkey
From:       Leonardo Finetti <finex () finex ! org>
Date:       2009-10-14 8:59:42
Message-ID: 1255510782.930264.343.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1034991 by finex:

Substituted QLineEdit with KLineEdit (with clear button).
Now the UI is more coherent with other KDE apps.

BUG: 191220



 M  +2 -10     downloadpage.cpp  
 M  +2 -2      downloadpage.h  


--- trunk/extragear/network/kmldonkey/kmldonkey/downloadpage.cpp #1034990:1034991
@@ -89,19 +89,11 @@
         //searchBox->setMargin( 4 );
         l->addWidget( searchBox );
 
-        QPushButton* button = new QPushButton( searchBox );
-        button->setObjectName("locationbar_erase");
-        searchlayout->addWidget( button );
-
-        m_filterEdit = new QLineEdit( /*i18n( "Filter here" ),*/ searchBox );
+        m_filterEdit = new KLineEdit( /*i18n( "Filter here" ),*/ searchBox );
+        m_filterEdit->setClearButtonShown(true);
         m_filterEdit->setFrame( QFrame::Sunken );
         searchlayout->addWidget( m_filterEdit );
 
-        button->setToolTip( i18n("Clear filter") );
-        m_filterEdit->setToolTip( i18n("Clear filter") );
-
-        connect( button, SIGNAL( clicked() ), m_filterEdit, SLOT( clear() ) );
-
         downloadView = new InfoList( downloadBox, "downloadView", true );
         l->addWidget( downloadView, 1 );
         downloadView->addColumn( i18n( "File name" ), 320 );
--- trunk/extragear/network/kmldonkey/kmldonkey/downloadpage.h #1034990:1034991
@@ -27,7 +27,7 @@
 
 #include <q3intdict.h>
 #include <QObject>
-#include <QLineEdit>
+#include <KLineEdit>
 #include <Q3PtrList>
 
 #include "clipboard.h"
@@ -126,7 +126,7 @@
     private:
         QTimer* m_timer;
         QSplitter* downloadSplitter;
-        QLineEdit* m_filterEdit;
+        KLineEdit* m_filterEdit;
         QString m_filter;
 
         Q3IntDict<DownloadFile> downloadFileList;
[prev in list] [next in list] [prev in thread] [next in thread] 

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