43 #define YUILogComponent "qt-pkg"
49 #include "YQPkgProductList.h"
60 yuiDebug() <<
"Creating product list" << endl;
64 headers << (
"" ); _statusCol = numCol++;
65 headers << _(
"Product" ); _nameCol = numCol++;
66 headers << _(
"Summary" ); _summaryCol = numCol++;
67 headers << _(
"Version" ); _versionCol = numCol++;
68 headers << _(
"Vendor" ); _vendorCol = numCol++;
70 setColumnCount( numCol );
71 setHeaderLabels(headers);
73 setAllColumnsShowFocus(
true );
76 setSortingEnabled(
true );
77 sortByColumn( nameCol(), Qt::AscendingOrder );
84 yuiDebug() <<
"Creating product list done" << endl;
98 yuiDebug() <<
"Filling product list" << endl;
100 for ( ZyppPoolIterator it = zyppProductsBegin();
101 it != zyppProductsEnd();
104 ZyppProduct zyppProduct = tryCastToZyppProduct( (*it)->theObj() );
112 yuiError() <<
"Found non-product selectable" << endl;
116 yuiDebug() <<
"product list filled" << endl;
117 resizeColumnToContents(_statusCol);
123 ZyppProduct zyppProduct )
127 yuiError() <<
"NULL ZyppSel!" << endl;
141 ZyppProduct zyppProduct )
143 , _productList( productList )
144 , _zyppProduct( zyppProduct )
146 if ( ! _zyppProduct )
147 _zyppProduct = tryCastToZyppProduct( selectable->theObj() );
149 if ( ! _zyppProduct )
154 if ( vendorCol() > -1 )
155 setText( vendorCol(), zyppProduct->vendor() );
176 #include "YQPkgProductList.moc"