Summary: | search option in "list all links" missing | ||
---|---|---|---|
Product: | [Applications] kget | Reporter: | Ferdinand Gassauer <gassauer> |
Component: | general | Assignee: | KGet authors <kget> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Ferdinand Gassauer
2005-10-13 21:56:47 UTC
If you're interested in one file type only, you can sort the listed links by their filetype. Adding a standard search bar to the widget with the list of links should be easy and allow selection based on filename, etc. thanks (1) I know - question of usablilty - not all people do a sort if they want a serch. (2) standard search bar should be like in "konqueror - Edit - Select" are you going to implement it? SVN commit 596874 by pfeiffer: trivial patch to add a KListViewSearchLine to the KGet "List all links" view BUG: 114361 M +11 -2 kget_linkview.cpp --- branches/KDE/3.5/kdenetwork/kget/kget_plug_in/kget_linkview.cpp #596873:596874 @@ -1,9 +1,12 @@ #include "kget_linkview.h" +#include <qlayout.h> + #include <dcopclient.h> #include <kaction.h> #include <kapplication.h> #include <kiconloader.h> +#include <klistviewsearchline.h> #include <klocale.h> #include <kmessagebox.h> #include <kprocess.h> @@ -52,7 +55,11 @@ toolBar()->insertLineSeparator(); actionSelectAll->plug( toolBar() ); - m_view = new KListView( this, "listview" ); + QWidget *mainWidget = new QWidget( this ); + QVBoxLayout *layout = new QVBoxLayout( mainWidget ); + setCentralWidget( mainWidget ); + + m_view = new KListView( mainWidget, "listview" ); m_view->setSelectionMode( QListView::Extended ); m_view->addColumn( i18n("File Name") ); m_view->addColumn( i18n("Description") ); @@ -60,7 +67,9 @@ m_view->addColumn( i18n("Location (URL)") ); m_view->setShowSortIndicator( true ); - setCentralWidget( m_view ); + KListViewSearchLineWidget *line = new KListViewSearchLineWidget( m_view, mainWidget, "search line" ); + layout->addWidget( line ); + layout->addWidget( m_view ); // setting a fixed (not floating) toolbar toolBar()->setMovingEnabled( false ); |