Bugzilla – Attachment 218418 Details for
Bug 394860
YaST2 qt-pkg - repos filter list not sorted
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Forgot Password
[patch]
Enable sorting the repositories filter list
yast2-qt-pkg-sorted-repos.patch (text/plain), 1.19 KB, created by
Forgotten User eSTct29jGv
on 2008-05-27 20:17:45 UTC
(
hide
)
Description:
Enable sorting the repositories filter list
Filename:
MIME Type:
Creator:
Forgotten User eSTct29jGv
Created:
2008-05-27 20:17:45 UTC
Size:
1.19 KB
patch
obsolete
>Index: src/YQPkgRepoList.h >=================================================================== >--- src/YQPkgRepoList.h (révision 47895) >+++ src/YQPkgRepoList.h (copie de travail) >@@ -177,6 +177,7 @@ > int nameCol() const { return _repoList->nameCol(); } > int urlCol() const { return _repoList->urlCol(); } > >+ virtual bool operator< ( const QTreeWidgetItem & other ) const; > protected: > > // Data members >Index: src/YQPkgRepoList.cc >=================================================================== >--- src/YQPkgRepoList.cc (révision 47895) >+++ src/YQPkgRepoList.cc (copie de travail) >@@ -61,6 +61,8 @@ > this, SLOT ( filterIfVisible()) ); > setIconSize(QSize(32,32)); > fillList(); >+ setSortingEnabled( true ); >+ sortByColumn( nameCol(), Qt::AscendingOrder ); > selectSomething(); > > yuiDebug() << "Creating repository list done" << endl; >@@ -358,6 +360,12 @@ > return product; > } > >+bool >+YQPkgRepoListItem::operator< ( const QTreeWidgetItem & other ) const >+{ >+ const YQPkgRepoListItem * otherItem = dynamic_cast<const YQPkgRepoListItem *>(&other); > >+ return zyppRepo().info().name() < otherItem->zyppRepo().info().name(); >+} > > #include "YQPkgRepoList.moc"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 394860
: 218418