[netinstall] Display package descriptions
- For packages with a description, show that - Add an example in the config-file
This commit is contained in:
parent
960008b124
commit
2aca5464b7
@ -131,28 +131,17 @@ PackageTreeItem::row() const
|
|||||||
QVariant
|
QVariant
|
||||||
PackageTreeItem::data( int column ) const
|
PackageTreeItem::data( int column ) const
|
||||||
{
|
{
|
||||||
if ( isPackage() ) // packages have a packagename, groups don't
|
|
||||||
{
|
|
||||||
switch ( column )
|
switch ( column )
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
return QVariant( packageName() );
|
// packages have a packagename, groups don't
|
||||||
default:
|
return QVariant( isPackage() ? packageName() : name() );
|
||||||
return QVariant();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
switch ( column ) // group
|
|
||||||
{
|
|
||||||
case 0:
|
|
||||||
return QVariant( name() );
|
|
||||||
case 1:
|
case 1:
|
||||||
|
// packages often have a blank description
|
||||||
return QVariant( description() );
|
return QVariant( description() );
|
||||||
default:
|
default:
|
||||||
return QVariant();
|
return QVariant();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PackageTreeItem*
|
PackageTreeItem*
|
||||||
|
@ -255,7 +255,9 @@ groups:
|
|||||||
- konversation
|
- konversation
|
||||||
- nheko
|
- nheko
|
||||||
- quaternion
|
- quaternion
|
||||||
# Setting *selected* is supported.
|
# Setting *selected* is supported. Here we also show off "rich"
|
||||||
|
# packages: ones with a package-name (for the package-manager)
|
||||||
|
# and a description (for the human).
|
||||||
- name: Editors
|
- name: Editors
|
||||||
description: "Editing"
|
description: "Editing"
|
||||||
selected: false
|
selected: false
|
||||||
@ -263,6 +265,10 @@ groups:
|
|||||||
- vi
|
- vi
|
||||||
- emacs
|
- emacs
|
||||||
- nano
|
- nano
|
||||||
|
- name: kate-git
|
||||||
|
description: Kate (unstable)
|
||||||
|
- name: kate
|
||||||
|
description: KDE's text editor
|
||||||
# The "bare" package names can be intimidating, so you can use subgroups
|
# The "bare" package names can be intimidating, so you can use subgroups
|
||||||
# to provide human-readable names while hiding the packages themselves.
|
# to provide human-readable names while hiding the packages themselves.
|
||||||
# This also allows you you group related packages -- suppose you feel
|
# This also allows you you group related packages -- suppose you feel
|
||||||
|
Loading…
Reference in New Issue
Block a user