KDE 4.5 PyKDE API Reference
  • KDE's Python API
  • Overview
  • PyKDE Home
  • Sitemap
  • Contact Us
 

KShellCompletion Class Reference

from PyKDE4.kio import *

Inherits: KUrlCompletion → KCompletion → QObject

Detailed Description

This class does shell-like completion of file names. A string passed to makeCompletion() will be interpreted as a shell command line. Completion will be done on the last argument on the line. Returned matches consist of the first arguments (uncompleted) plus the completed last argument.

Shell-like completion of file names

Author:
David Smith <dsmith@algonet.se>


Methods

 __init__ (self)
QString makeCompletion (self, QString text)
 postProcessMatch (self, QString match)
 postProcessMatches (self, QStringList matches)

Method Documentation

__init__ (   self )

Constructs a KShellCompletion object.

QString makeCompletion (  self,
QString  text
)

Finds completions to the given text. The first match is returned and emitted in the signal match().

Parameters:
text  the text to complete

Returns:
the first match, or QString() if not found

postProcessMatch (  self,
QString  match
)
postProcessMatches (  self,
QStringList  matches
)
  • Full Index

Modules

  • akonadi
  • dnssd
  • kdecore
  • kdeui
  • khtml
  • kio
  • knewstuff
  • kparts
  • kutils
  • nepomuk
  • phonon
  • plasma
  • polkitqt
  • solid
  • soprano
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal