mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 08:58:22 -04:00
fixed style issues
This commit is contained in:
parent
a4aef3bce5
commit
f5fe887a79
6 changed files with 102 additions and 107 deletions
|
@ -99,14 +99,10 @@ QVariant
|
|||
PackageModel::data( const QModelIndex& index, int role ) const
|
||||
{
|
||||
if ( !index.isValid() )
|
||||
{
|
||||
return QVariant();
|
||||
}
|
||||
PackageTreeItem* item = static_cast<PackageTreeItem*>( index.internalPointer() );
|
||||
if ( index.column() == 0 && role == Qt::CheckStateRole )
|
||||
{
|
||||
return item->isSelected();
|
||||
}
|
||||
|
||||
if ( !item->childCount() ) // package
|
||||
{
|
||||
|
@ -120,9 +116,7 @@ PackageModel::data( const QModelIndex& index, int role ) const
|
|||
}
|
||||
|
||||
if ( item->isHidden() && role == Qt::DisplayRole ) // Hidden group
|
||||
{
|
||||
return QVariant();
|
||||
}
|
||||
|
||||
switch ( role )
|
||||
{
|
||||
|
|
|
@ -28,7 +28,8 @@
|
|||
class PackageTreeItem : public QStandardItem
|
||||
{
|
||||
public:
|
||||
struct ItemData {
|
||||
struct ItemData
|
||||
{
|
||||
QString name;
|
||||
QString description;
|
||||
QString preScript;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue