]> Git trees. - libqmvoc.git/commitdiff
remove the clear button, already provided by klineedit
authorPino Toscano <pino@kde.org>
Tue, 13 Feb 2007 14:37:06 +0000 (14:37 +0000)
committerPino Toscano <pino@kde.org>
Tue, 13 Feb 2007 14:37:06 +0000 (14:37 +0000)
header cleanup

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=633213

kdeeduui/kdeeduglossary.cpp

index 27136506e4aa24f5d20529cf1f370e8e2ba13be0..5b39475fa1e5b42e4671242cb6509152f564b9b2 100644 (file)
 
 #include <kdebug.h>
 #include <klocale.h>
-#include <kiconloader.h>
 #include <khtml_part.h>
 #include <khtmlview.h>
-#include <kglobal.h>
-#include <kstandarddirs.h>
 #include <ktreewidgetsearchline.h>
 #include <kactioncollection.h>
 
 #include <qlabel.h>
 #include <qlayout.h>
 #include <qlist.h>
-#include <qpushbutton.h>
 #include <qregexp.h>
 #include <qsplitter.h>
 #include <qstringlist.h>
-#include <qtoolbutton.h>
 #include <qtreewidget.h>
 
 static const int FirstLetterRole = 0x00b00a00;
@@ -291,11 +286,6 @@ GlossaryDialog::GlossaryDialog( bool folded, QWidget *parent )
        hbox->setSpacing( spacingHint() );
        hbox->activate();
 
-       QToolButton *clear = new QToolButton( main );
-       clear->setIcon( SmallIcon( "locationbar_erase" ) );
-       clear->setToolTip( i18n( "Clear filter" ) );
-       hbox->addWidget( clear );
-
        QLabel *lbl = new QLabel( main );
        lbl->setText( i18n( "Search:" ) );
        hbox->addWidget( lbl );
@@ -321,7 +311,6 @@ GlossaryDialog::GlossaryDialog( bool folded, QWidget *parent )
 
        connect( d->m_htmlpart->browserExtension(), SIGNAL( openUrlRequestDelayed( const KUrl &, const KParts::URLArgs & ) ), this, SLOT( displayItem( const KUrl &, const KParts::URLArgs & ) ) );
        connect( d->m_glosstree, SIGNAL( itemActivated( QTreeWidgetItem * , int ) ), this, SLOT( itemActivated( QTreeWidgetItem * , int ) ) );
-       connect( clear, SIGNAL(clicked()), d->m_search, SLOT(clear()));
 
        resize( 600, 400 );
 }