Logo Search packages:      
Sourcecode: qapt version File versions  Download package

QString QApt::Package::shortDescription (  )  const

Member function that returns the short description (or "summary" in libapt-pkg terms) of the package

The short description of the package as a QString

Definition at line 181 of file package.cpp.

Referenced by longDescription().

    QString shortDescription;
    pkgCache::VerIterator ver = (*d->depCache)[*d->packageIter].CandidateVerIter(*d->depCache);
    if (!ver.end()) {
        pkgCache::DescIterator Desc = ver.TranslatedDescription();
        pkgRecords::Parser & parser = d->records->Lookup(Desc.FileList());
        shortDescription = QString::fromUtf8(parser.ShortDesc().data());
        return shortDescription;

    return shortDescription;

Generated by  Doxygen 1.6.0   Back to index