View | Details | Raw Unified | Return to bug 394860
Collapse All | Expand All

(-)src/YQPkgRepoList.h (+1 lines)
Lines 177-182 Link Here
177
    int nameCol()	const	{ return _repoList->nameCol();	}
177
    int nameCol()	const	{ return _repoList->nameCol();	}
178
    int urlCol()	const 	{ return _repoList->urlCol(); 	}
178
    int urlCol()	const 	{ return _repoList->urlCol(); 	}
179
179
180
    virtual bool operator< ( const QTreeWidgetItem & other ) const;
180
protected:
181
protected:
181
182
182
    // Data members
183
    // Data members
(-)src/YQPkgRepoList.cc (+8 lines)
Lines 61-66 Link Here
61
	     this, 	SLOT  ( filterIfVisible()) );
61
	     this, 	SLOT  ( filterIfVisible()) );
62
    setIconSize(QSize(32,32));
62
    setIconSize(QSize(32,32));
63
    fillList();
63
    fillList();
64
    setSortingEnabled( true );
65
    sortByColumn( nameCol(), Qt::AscendingOrder );
64
    selectSomething();
66
    selectSomething();
65
67
66
    yuiDebug() << "Creating repository list done" << endl;
68
    yuiDebug() << "Creating repository list done" << endl;
Lines 358-363 Link Here
358
    return product;
360
    return product;
359
}
361
}
360
362
363
bool
364
YQPkgRepoListItem::operator< ( const QTreeWidgetItem & other ) const
365
{
366
    const YQPkgRepoListItem * otherItem = dynamic_cast<const YQPkgRepoListItem *>(&other);
361
367
368
    return zyppRepo().info().name() < otherItem->zyppRepo().info().name();
369
}
362
370
363
#include "YQPkgRepoList.moc"
371
#include "YQPkgRepoList.moc"

Return to bug 394860