.TH "KFileView" 3 "28 Jan 2004" "kio Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KFileView \- This class defines an interface to all file views. A base class for views of the \fBKDE\fP file selector.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kfileview.h>\fP
.PP
Inherited by \fBKCombiView\fP, \fBKFileDetailView\fP, \fBKFileIconView\fP, and \fBKFilePreview\fP.
.PP
.SS "Public Types"

.in +1c
.ti -1c
.RI "enum \fBViewMode\fP { \fBFiles\fP =  1, \fBDirectories\fP =  2, \fBAll\fP =  Files | Directories }"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "virtual \fB~KFileView\fP ()"
.br
.RI "\fIDestructor. \fP"
.ti -1c
.RI "void \fBaddItemList\fP (const  \fBKFileItemList\fP &list)"
.br
.RI "\fIinserts a list of items. \fP"
.ti -1c
.RI "virtual \fBQWidget\fP * \fBwidget\fP ()=0"
.br
.RI "\fIa pure virtual function to get a \fBQWidget\fP, that can be added to other widgets. \fP"
.ti -1c
.RI "\fBQWidget\fP * \fBwidget\fP () const "
.br
.RI "\fI### As const-method, to be fixed in 3.0 \fP"
.ti -1c
.RI "void \fBsetCurrentItem\fP (const  \fBQString\fP &filename)"
.br
.RI "\fISets \fCfilename\fP the current item in the view, if available. \fP"
.ti -1c
.RI "virtual void \fBsetCurrentItem\fP (const  \fBKFileItem\fP *item)=0"
.br
.RI "\fIReimplement this to set \fCitem\fP the current item in the view, e.g. \fP"
.ti -1c
.RI "virtual \fBKFileItem\fP * \fBcurrentFileItem\fP () const =0"
.br
.ti -1c
.RI "virtual void \fBclear\fP ()"
.br
.RI "\fIClears the view and all item lists. \fP"
.ti -1c
.RI "virtual void \fBupdateView\fP (bool f=true)"
.br
.RI "\fIdoes a repaint of the view. \fP"
.ti -1c
.RI "virtual void \fBupdateView\fP (const  \fBKFileItem\fP *)"
.br
.ti -1c
.RI "virtual void \fBremoveItem\fP (const  \fBKFileItem\fP *item)"
.br
.RI "\fIRemoves an item from the list; has to be implemented by the view. \fP"
.ti -1c
.RI "virtual void \fBlistingCompleted\fP ()"
.br
.RI "\fIThis hook is called when all items of the currently listed directory are listed and inserted into the view, i.e. \fP"
.ti -1c
.RI "QDir::SortSpec \fBsorting\fP () const "
.br
.RI "\fIReturns the sorting order of the internal list. \fP"
.ti -1c
.RI "virtual void \fBsetSorting\fP (QDir::SortSpec sort)"
.br
.RI "\fISets the sorting order of the view. \fP"
.ti -1c
.RI "bool \fBisReversed\fP () const "
.br
.RI "\fITells whether the current items are in reversed order (shortcut to \fBsorting()\fP & QDir::Reversed). \fP"
.ti -1c
.RI "void \fBsortReversed\fP ()"
.br
.ti -1c
.RI "uint \fBcount\fP () const "
.br
.ti -1c
.RI "uint \fBnumFiles\fP () const "
.br
.ti -1c
.RI "uint \fBnumDirs\fP () const "
.br
.ti -1c
.RI "virtual void \fBsetSelectionMode\fP (KFile::SelectionMode sm)"
.br
.ti -1c
.RI "virtual KFile::SelectionMode \fBselectionMode\fP () const "
.br
.ti -1c
.RI "virtual void \fBsetViewMode\fP (ViewMode vm)"
.br
.ti -1c
.RI "virtual ViewMode \fBviewMode\fP () const "
.br
.ti -1c
.RI "\fBQString\fP \fBviewName\fP () const "
.br
.ti -1c
.RI "void \fBsetViewName\fP (const  \fBQString\fP &name)"
.br
.RI "\fISets the name of the view, which could be displayed somewhere. \fP"
.ti -1c
.RI "virtual void \fBsetParentView\fP (\fBKFileView\fP *parent)"
.br
.ti -1c
.RI "virtual void \fBinsertItem\fP (\fBKFileItem\fP *i)"
.br
.RI "\fIThe derived view must implement this function to add the file in the widget. \fP"
.ti -1c
.RI "virtual void \fBclearView\fP ()=0"
.br
.RI "\fIpure virtual function, that should be implemented to clear the view. \fP"
.ti -1c
.RI "virtual void \fBensureItemVisible\fP (const  \fBKFileItem\fP *i)=0"
.br
.RI "\fIpure virtual function, that should be implemented to make item i visible, i.e. \fP"
.ti -1c
.RI "virtual void \fBclearSelection\fP ()=0"
.br
.RI "\fIClears any selection, unhighlights everything. \fP"
.ti -1c
.RI "virtual void \fBselectAll\fP ()"
.br
.RI "\fISelects all items. \fP"
.ti -1c
.RI "virtual void \fBinvertSelection\fP ()"
.br
.RI "\fIInverts the current selection, i.e. \fP"
.ti -1c
.RI "virtual void \fBsetSelected\fP (const  \fBKFileItem\fP *, bool enable)=0"
.br
.RI "\fITells the view that it should highlight the item. \fP"
.ti -1c
.RI "virtual bool \fBisSelected\fP (const  \fBKFileItem\fP *) const =0"
.br
.ti -1c
.RI "const  \fBKFileItemList\fP * \fBselectedItems\fP () const "
.br
.ti -1c
.RI "const  \fBKFileItemList\fP * \fBitems\fP () const "
.br
.ti -1c
.RI "virtual \fBKFileItem\fP * \fBfirstFileItem\fP () const =0"
.br
.ti -1c
.RI "virtual \fBKFileItem\fP * \fBnextItem\fP (const  \fBKFileItem\fP *) const =0"
.br
.ti -1c
.RI "virtual \fBKFileItem\fP * \fBprevItem\fP (const  \fBKFileItem\fP *) const =0"
.br
.ti -1c
.RI "void \fBsetOnlyDoubleClickSelectsFiles\fP (bool enable)"
.br
.RI "\fIThis is a \fBKFileDialog\fP specific hack: we want to select directories with single click, but not files. \fP"
.ti -1c
.RI "bool \fBonlyDoubleClickSelectsFiles\fP () const "
.br
.ti -1c
.RI "bool \fBupdateNumbers\fP (const  \fBKFileItem\fP *i)"
.br
.RI "\fIincreases the number of dirs and files. \fP"
.ti -1c
.RI "virtual \fBKActionCollection\fP * \fBactionCollection\fP () const "
.br
.ti -1c
.RI "\fBKFileViewSignaler\fP * \fBsignaler\fP () const "
.br
.ti -1c
.RI "virtual void \fBreadConfig\fP (\fBKConfig\fP *, const  \fBQString\fP &group=QString::null)"
.br
.ti -1c
.RI "virtual void \fBwriteConfig\fP (\fBKConfig\fP *, const  \fBQString\fP &group=QString::null)"
.br
.in -1c
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "\fBQString\fP \fBsortingKey\fP (const  \fBQString\fP &value, bool isDir, int sortSpec)"
.br
.RI "\fIThis method calculates a \fBQString\fP from the given parameters, that is suitable for sorting with e.g. \fP"
.ti -1c
.RI "\fBQString\fP \fBsortingKey\fP (KIO::filesize_t value, bool isDir, int sortSpec)"
.br
.RI "\fIAn overloaded method that takes not a \fBQString\fP, but a number as sort criterion. \fP"
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "\fBKFileViewSignaler\fP * \fBsig\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
This class defines an interface to all file views. A base class for views of the \fBKDE\fP file selector. 

Its intent is to allow to switch the view of the files in the selector very easily. It defines some pure virtual functions, that must be implemented to make a file view working.
.PP
Since this class is not a widget, but it's meant to be added to other widgets, its most important function is \fBwidget\fP. This should return a pointer to the implemented widget.
.PP
\fBAuthor:\fP
.RS 4
Stephan Kulow <coolo@kde.org> 
.RE
.PP
\fBVersion:\fP
.RS 4
\fBId\fP.RS 4
\fBkfileview.h\fP,v 1.44 2002/08/02 08:35:37 coolo Exp 
.RE
.PP
.RE
.PP

.PP
Definition at line 94 of file kfileview.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KFileView::~\fBKFileView\fP ()\fC [virtual]\fP"
.PP
Destructor. Definition at line 81 of file kfileview.cpp.
.SH "Member Function Documentation"
.PP 
.SS "void KFileView::addItemList (const \fBKFileItemList\fP & list)"
.PP
inserts a list of items. Definition at line 126 of file kfileview.cpp.
.PP
References QPtrListIterator::current(), insertItem(), and updateNumbers().
.PP
Referenced by KDirOperator::insertNewFiles().
.SS "virtual \fBQWidget\fP* KFileView::widget ()\fC [pure virtual]\fP"
.PP
a pure virtual function to get a \fBQWidget\fP, that can be added to other widgets. This function is needed to make it possible for derived classes to derive from other widgets. Implemented in \fBKCombiView\fP, \fBKFileDetailView\fP, \fBKFileIconView\fP, and \fBKFilePreview\fP.
.PP
Referenced by actionCollection(), KFilePreview::setFileView(), KDirOperator::setView(), updateView(), and KDirOperator::viewWidget().
.SS "\fBQWidget\fP* KFileView::widget () const\fC [inline]\fP"
.PP
### As const-method, to be fixed in 3.0 Definition at line 119 of file kfileview.h.
.SS "void KFileView::setCurrentItem (const \fBQString\fP & filename)"
.PP
Sets \fCfilename\fP the current item in the view, if available. Definition at line 264 of file kfileview.cpp.
.PP
References QString::isNull(), and KFileItem::name().
.PP
Referenced by KDirOperator::insertNewFiles(), KFilePreview::setCurrentItem(), KDirOperator::setCurrentItem(), and KCombiView::setCurrentItem().
.SS "virtual void KFileView::setCurrentItem (const \fBKFileItem\fP * item)\fC [pure virtual]\fP"
.PP
Reimplement this to set \fCitem\fP the current item in the view, e.g. the item having focus. Implemented in \fBKCombiView\fP, \fBKFileDetailView\fP, \fBKFileIconView\fP, and \fBKFilePreview\fP.
.SS "virtual \fBKFileItem\fP* KFileView::currentFileItem () const\fC [pure virtual]\fP"
.PP
\fBReturns:\fP
.RS 4
the 'current' \fBKFileItem\fP, e.g. where the cursor is. Returns 0L when there is no current item (e.g. in an empty view). Subclasses have to implement this. 
.RE
.PP
Implemented in \fBKCombiView\fP, \fBKFileDetailView\fP, \fBKFileIconView\fP, and \fBKFilePreview\fP.
.PP
Referenced by KFilePreview::currentFileItem(), and KCombiView::currentFileItem().
.SS "void KFileView::clear ()\fC [virtual]\fP"
.PP
Clears the view and all item lists. Reimplemented in \fBKCombiView\fP, and \fBKFilePreview\fP.
.PP
Definition at line 152 of file kfileview.cpp.
.PP
References QPtrList::clear(), and clearView().
.PP
Referenced by KFilePreview::clear(), KCombiView::clear(), and KDirOperator::pathChanged().
.SS "void KFileView::updateView (bool f = true)\fC [virtual]\fP"
.PP
does a repaint of the view. The default implementation calls 
.PP
.nf
\fBwidget()\fP->repaint(f)
.PP
 Reimplemented in \fBKCombiView\fP, \fBKFileDetailView\fP, \fBKFileIconView\fP, and \fBKFilePreview\fP.
.PP
Definition at line 255 of file kfileview.cpp.
.PP
References QWidget::repaint(), and widget().
.PP
Referenced by KFilePreview::updateView(), and KCombiView::updateView().
.SS "void KFileView::removeItem (const \fBKFileItem\fP * item)\fC [virtual]\fP"
.PP
Removes an item from the list; has to be implemented by the view. Call KFileView::removeItem( item ) after removing it. Reimplemented in \fBKCombiView\fP, \fBKFileDetailView\fP, \fBKFileIconView\fP, and \fBKFilePreview\fP.
.PP
Definition at line 342 of file kfileview.cpp.
.PP
References KFileItem::isDir(), and QPtrList::removeRef().
.PP
Referenced by KDirOperator::itemDeleted(), KFilePreview::removeItem(), KFileIconView::removeItem(), KFileDetailView::removeItem(), and KCombiView::removeItem().
.SS "void KFileView::listingCompleted ()\fC [virtual]\fP"
.PP
This hook is called when all items of the currently listed directory are listed and inserted into the view, i.e. there won't come any new items anymore. Reimplemented in \fBKCombiView\fP, \fBKFileDetailView\fP, \fBKFileIconView\fP, and \fBKFilePreview\fP.
.PP
Definition at line 356 of file kfileview.cpp.
.PP
Referenced by KFilePreview::listingCompleted(), KCombiView::listingCompleted(), and KDirOperator::updateDir().
.SS "QDir::SortSpec KFileView::sorting () const\fC [inline]\fP"
.PP
Returns the sorting order of the internal list. Newly added files are added through this sorting. Definition at line 171 of file kfileview.h.
.PP
Referenced by KFilePreview::setFileView(), KFilePreview::setSorting(), and KCombiView::setSorting().
.SS "void KFileView::setSorting (QDir::SortSpec sort)\fC [virtual]\fP"
.PP
Sets the sorting order of the view. Default is QDir::Name | QDir::IgnoreCase | QDir::DirsFirst Override this in your subclass and sort accordingly (usually by setting the sorting-key for every item and telling \fBQIconView\fP or \fBQListView\fP to sort.
.PP
A view may choose to use a different sorting than QDir::Name, Time or Size. E.g. to sort by mimetype or any possible string. Set the sorting to QDir::Unsorted for that and do the rest internally.
.PP
\fBSee also:\fP
.RS 4
\fBsortingKey\fP 
.RE
.PP
Reimplemented in \fBKCombiView\fP, \fBKFileDetailView\fP, \fBKFileIconView\fP, and \fBKFilePreview\fP.
.PP
Definition at line 147 of file kfileview.cpp.
.PP
Referenced by KFilePreview::setFileView(), KFilePreview::setSorting(), KFileIconView::setSorting(), KFileDetailView::setSorting(), KDirOperator::setSorting(), KCombiView::setSorting(), and KDirOperator::setView().
.SS "bool KFileView::isReversed () const\fC [inline]\fP"
.PP
Tells whether the current items are in reversed order (shortcut to \fBsorting()\fP & QDir::Reversed). Definition at line 193 of file kfileview.h.
.PP
Referenced by KFileIconView::setSorting(), and KDirOperator::updateSortActions().
.SS "uint KFileView::count () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
the number of dirs and files 
.RE
.PP
Definition at line 200 of file kfileview.h.
.SS "uint KFileView::numFiles () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
the number of files. 
.RE
.PP
Definition at line 205 of file kfileview.h.
.PP
Referenced by KDirOperator::insertNewFiles(), KDirOperator::itemDeleted(), and KDirOperator::numFiles().
.SS "uint KFileView::numDirs () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
the number of directories 
.RE
.PP
Definition at line 210 of file kfileview.h.
.PP
Referenced by KDirOperator::insertNewFiles(), KDirOperator::itemDeleted(), and KDirOperator::numDirs().
.SS "\fBQString\fP KFileView::viewName () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
the localized name of the view, which could be displayed somewhere, e.g. in a menu, where the user can choose between views. 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetViewName\fP 
.RE
.PP
Definition at line 228 of file kfileview.h.
.PP
Referenced by KCombiView::setRight().
.SS "void KFileView::setViewName (const \fBQString\fP & name)\fC [inline]\fP"
.PP
Sets the name of the view, which could be displayed somewhere. E.g. 'Image Preview'. Definition at line 234 of file kfileview.h.
.PP
References KStdAccel::name().
.PP
Referenced by KDirOperator::createView(), and KCombiView::setRight().
.SS "void KFileView::insertItem (\fBKFileItem\fP * i)\fC [virtual]\fP"
.PP
The derived view must implement this function to add the file in the widget. Make sure to call this implementation, i.e. KFileView::insertItem( i ); Reimplemented in \fBKCombiView\fP, \fBKFileDetailView\fP, \fBKFileIconView\fP, and \fBKFilePreview\fP.
.PP
Definition at line 143 of file kfileview.cpp.
.PP
Referenced by addItemList(), KFilePreview::insertItem(), KFileIconView::insertItem(), KFileDetailView::insertItem(), and KCombiView::insertItem().
.SS "virtual void KFileView::clearView ()\fC [pure virtual]\fP"
.PP
pure virtual function, that should be implemented to clear the view. At this moment the list is already empty Implemented in \fBKCombiView\fP, \fBKFileDetailView\fP, \fBKFileIconView\fP, and \fBKFilePreview\fP.
.PP
Referenced by clear(), KFilePreview::clearView(), and KCombiView::clearView().
.SS "virtual void KFileView::ensureItemVisible (const \fBKFileItem\fP * i)\fC [pure virtual]\fP"
.PP
pure virtual function, that should be implemented to make item i visible, i.e. by scrolling the view appropriately. Implemented in \fBKCombiView\fP, \fBKFileDetailView\fP, \fBKFileIconView\fP, and \fBKFilePreview\fP.
.PP
Referenced by KFilePreview::ensureItemVisible(), KCombiView::ensureItemVisible(), KDirOperator::insertNewFiles(), and KDirOperator::setCurrentItem().
.SS "virtual void KFileView::clearSelection ()\fC [pure virtual]\fP"
.PP
Clears any selection, unhighlights everything. Must be implemented by the view. Implemented in \fBKCombiView\fP, \fBKFileDetailView\fP, \fBKFileIconView\fP, and \fBKFilePreview\fP.
.PP
Referenced by KFilePreview::clearSelection(), KCombiView::clearSelection(), KDirOperator::makeCompletion(), KDirOperator::makeDirCompletion(), and KDirOperator::setCurrentItem().
.SS "void KFileView::selectAll ()\fC [virtual]\fP"
.PP
Selects all items. You may want to override this, if you can implement it more efficiently than calling \fBsetSelected()\fP with every item. This works only in Multiselection mode of course. Reimplemented in \fBKCombiView\fP, \fBKFileDetailView\fP, \fBKFileIconView\fP, and \fBKFilePreview\fP.
.PP
Definition at line 308 of file kfileview.cpp.
.PP
References setSelected().
.PP
Referenced by KFilePreview::selectAll(), and KCombiView::selectAll().
.SS "void KFileView::invertSelection ()\fC [virtual]\fP"
.PP
Inverts the current selection, i.e. selects all items, that were up to now not selected and deselects the other. Reimplemented in \fBKCombiView\fP, \fBKFileDetailView\fP, \fBKFileIconView\fP, and \fBKFilePreview\fP.
.PP
Definition at line 319 of file kfileview.cpp.
.PP
References isSelected(), and setSelected().
.PP
Referenced by KFilePreview::invertSelection(), and KCombiView::invertSelection().
.SS "virtual void KFileView::setSelected (const \fBKFileItem\fP *, bool enable)\fC [pure virtual]\fP"
.PP
Tells the view that it should highlight the item. This function must be implemented by the view. Implemented in \fBKCombiView\fP, \fBKFileDetailView\fP, \fBKFileIconView\fP, and \fBKFilePreview\fP.
.PP
Referenced by invertSelection(), selectAll(), KDirOperator::setCurrentItem(), KFilePreview::setSelected(), and KCombiView::setSelected().
.SS "virtual bool KFileView::isSelected (const \fBKFileItem\fP *) const\fC [pure virtual]\fP"
.PP
\fBReturns:\fP
.RS 4
whether the given item is currently selected. Must be implemented by the view. 
.RE
.PP
Implemented in \fBKCombiView\fP, \fBKFileDetailView\fP, \fBKFileIconView\fP, and \fBKFilePreview\fP.
.PP
Referenced by invertSelection(), KFilePreview::isSelected(), KDirOperator::isSelected(), KCombiView::isSelected(), KFilePreview::removeItem(), and selectedItems().
.SS "const  \fBKFileItemList\fP * KFileView::selectedItems () const"
.PP
\fBReturns:\fP
.RS 4
all currently highlighted items. 
.RE
.PP
Definition at line 292 of file kfileview.cpp.
.PP
References QPtrList::append(), QPtrList::clear(), and isSelected().
.PP
Referenced by KDirOperator::deleteSelected(), KDirOperator::selectedItems(), and KDirOperator::updateSelectionDependentActions().
.SS "const  \fBKFileItemList\fP * KFileView::items () const"
.PP
\fBReturns:\fP
.RS 4
all items currently available in the current sort-order 
.RE
.PP
Definition at line 279 of file kfileview.cpp.
.PP
References QPtrList::append(), and QPtrList::clear().
.PP
Referenced by KDirOperator::prepareCompletionObjects(), KFileIconView::setSorting(), and KFileIconView::showPreviews().
.SS "void KFileView::setOnlyDoubleClickSelectsFiles (bool enable)\fC [inline]\fP"
.PP
This is a \fBKFileDialog\fP specific hack: we want to select directories with single click, but not files. But as a generic class, we have to be able to select files on single click as well.
.PP
This gives us the opportunity to do both.
.PP
Every view has to decide when to call select( item ) when a file was single-clicked, based on \fBonlyDoubleClickSelectsFiles\fP(). Definition at line 315 of file kfileview.h.
.PP
Referenced by KDirOperator::createView(), KDirOperator::setOnlyDoubleClickSelectsFiles(), and KDirOperator::setView().
.SS "bool KFileView::onlyDoubleClickSelectsFiles () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
whether files (not directories) should only be select()ed by double-clicks. 
.RE
.PP
\fBSee also:\fP
.RS 4
\fBsetOnlyDoubleClickSelectsFiles\fP 
.RE
.PP
Definition at line 324 of file kfileview.h.
.SS "bool KFileView::updateNumbers (const \fBKFileItem\fP * i)"
.PP
increases the number of dirs and files. \fBReturns:\fP
.RS 4
true if the item fits the view mode 
.RE
.PP
Definition at line 106 of file kfileview.cpp.
.PP
References KFileItem::isDir(), and KFileItem::isFile().
.PP
Referenced by addItemList(), and KCombiView::insertItem().
.SS "\fBKActionCollection\fP * KFileView::actionCollection () const\fC [virtual]\fP"
.PP
\fBReturns:\fP
.RS 4
the view-specific action-collection. Every view should add its actions here (if it has any) to make them available to e.g. the KDirOperator's popup-menu. 
.RE
.PP
Reimplemented in \fBKCombiView\fP, and \fBKFilePreview\fP.
.PP
Definition at line 361 of file kfileview.cpp.
.PP
References widget().
.PP
Referenced by KFilePreview::actionCollection(), and KCombiView::actionCollection().
.SS "\fBQString\fP KFileView::sortingKey (const \fBQString\fP & value, bool isDir, int sortSpec)\fC [static]\fP"
.PP
This method calculates a \fBQString\fP from the given parameters, that is suitable for sorting with e.g. \fBQIconView\fP or \fBQListView\fP. Their Item-classes usually have a setKey( const QString& ) method or a virtual method \fBQString\fP key() that is used for sorting.
.PP
\fBParameters:\fP
.RS 4
\fIvalue\fP Any string that should be used as sort criterion 
.br
\fIisDir\fP Tells whether the key is computed for an item representing a directory (directories are usually sorted before files) 
.br
\fIsortSpec\fP An ORed combination of QDir::SortSpec flags. Currently, the values IgnoreCase, Reversed and DirsFirst are taken into account. 
.RE
.PP
Definition at line 376 of file kfileview.cpp.
.PP
References QString::lower(), and QString::prepend().
.PP
Referenced by KFileIconView::setSorting().
.SS "\fBQString\fP KFileView::sortingKey (KIO::filesize_t value, bool isDir, int sortSpec)\fC [static]\fP"
.PP
An overloaded method that takes not a \fBQString\fP, but a number as sort criterion. You can use this for file-sizes or dates/times for example. If you use a time_t, you need to cast that to KIO::filesize_t because of ambiguity problems. Definition at line 385 of file kfileview.cpp.
.PP
References KIO::number(), and QString::rightJustify().

.SH "Author"
.PP 
Generated automatically by Doxygen for kio Library from the source code.
