[yast-commit] r42558 - /branches/tmp/coolo/qt4-port/src/pkg/
Author: coolo Date: Fri Nov 30 14:56:02 2007 New Revision: 42558 URL: http://svn.opensuse.org/viewcvs/yast?rev=42558&view=rev Log: #ifdefed out everything not compiling so it can be ported class by class Modified: branches/tmp/coolo/qt4-port/src/pkg/YQPkgConflictList.cc branches/tmp/coolo/qt4-port/src/pkg/YQPkgDescriptionDialog.cc branches/tmp/coolo/qt4-port/src/pkg/YQPkgDiskUsageList.cc branches/tmp/coolo/qt4-port/src/pkg/YQPkgLangList.cc branches/tmp/coolo/qt4-port/src/pkg/YQPkgList.cc branches/tmp/coolo/qt4-port/src/pkg/YQPkgObjList.cc branches/tmp/coolo/qt4-port/src/pkg/YQPkgPatchList.cc branches/tmp/coolo/qt4-port/src/pkg/YQPkgPatchList.h branches/tmp/coolo/qt4-port/src/pkg/YQPkgPatternList.cc branches/tmp/coolo/qt4-port/src/pkg/YQPkgProductList.cc branches/tmp/coolo/qt4-port/src/pkg/YQPkgRepoList.cc branches/tmp/coolo/qt4-port/src/pkg/YQPkgSelList.cc branches/tmp/coolo/qt4-port/src/pkg/YQPkgVersionsView.cc branches/tmp/coolo/qt4-port/src/pkg/YQPkgVersionsView.h Modified: branches/tmp/coolo/qt4-port/src/pkg/YQPkgConflictList.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/coolo/qt4-port/src/pkg/YQPkgConflictList.cc?rev=42558&r1=42557&r2=42558&view=diff ============================================================================== --- branches/tmp/coolo/qt4-port/src/pkg/YQPkgConflictList.cc (original) +++ branches/tmp/coolo/qt4-port/src/pkg/YQPkgConflictList.cc Fri Nov 30 14:56:02 2007 @@ -198,11 +198,10 @@ return; // Write indentation - +#if FIXME for ( int level = 0; level < item->depth(); level++ ) fprintf( file, " " ); - // Write item const Q3CheckListItem * checkListItem = dynamic_cast<const Q3CheckListItem *> (item); @@ -237,6 +236,7 @@ child = child->nextSibling(); } } +#endif } @@ -255,6 +255,7 @@ if ( longText.isEmpty() ) return; +#if FIXME if ( ! header.isEmpty() ) { parent = new QY2ListViewItem( parent, header ); @@ -292,6 +293,7 @@ new QY2ListViewItem( parent, *it ); ++it; } +#endif } @@ -307,7 +309,9 @@ , _resolutionsHeader( 0 ) { setBackgroundColor( LIGHT_BLUE ); +#if FIXME setOpen( true ); +#endif formatHeading(); YQPkgConflictList::dumpList( this, fromUTF8( _problem->details() ) ); @@ -323,7 +327,9 @@ QPixmap icon = YQIconPool::normalPkgConflict(); setTextColor( BRIGHT_RED ); +#if FIXME setText( 0, Qt::DisplayRole, fromUTF8( problem()->description() ) ); +#endif setData( 0, Qt::DecorationRole, icon ); } @@ -336,7 +342,9 @@ // how to resolve this conflict _( "Conflict Resolution:" ) ); Q_CHECK_PTR( _resolutionsHeader ); +#if FIXME _resolutionsHeader->setOpen( true ); +#endif _resolutionsHeader->setBackgroundColor( LIGHT_GREY ); zypp::ProblemSolutionList solutions = problem()->solutions(); @@ -358,7 +366,9 @@ int alignment ) { painter->setFont( YQUI::yqApp()->headingFont() ); +#if FIXME QY2ListViewItem::paintCell( painter, colorGroup, column, width, alignment ); +#endif } @@ -368,6 +378,7 @@ int count = 0; QTreeWidgetItem * item; +#if FIXME while ( item = _resolutionsHeader->topLevelItem(count) ) { YQPkgConflictResolution * res = dynamic_cast<YQPkgConflictResolution *> (item); @@ -385,6 +396,7 @@ count++; } +#endif return zypp::ProblemSolution_Ptr(); // Null pointer } @@ -396,10 +408,10 @@ YQPkgConflictResolution::YQPkgConflictResolution( QY2CheckListItem * parent, zypp::ProblemSolution_Ptr solution ) : QY2CheckListItem( parent, - fromUTF8( solution->description() ), - /*Q3CheckListItem::RadioButton) */ - , _solution( solution )) + fromUTF8( solution->description() ) ) + /*, Q3CheckListItem::RadioButton) */ { + _solution = solution; YQPkgConflictList::dumpList( this, fromUTF8( solution->details() ) ); } Modified: branches/tmp/coolo/qt4-port/src/pkg/YQPkgDescriptionDialog.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/coolo/qt4-port/src/pkg/YQPkgDescriptionDialog.cc?rev=42558&r1=42557&r2=42558&view=diff ============================================================================== --- branches/tmp/coolo/qt4-port/src/pkg/YQPkgDescriptionDialog.cc (original) +++ branches/tmp/coolo/qt4-port/src/pkg/YQPkgDescriptionDialog.cc Fri Nov 30 14:56:02 2007 @@ -75,7 +75,7 @@ Q_CHECK_PTR( _pkgList ); _pkgList->resize( _pkgList->width(), 80 ); - + // Description view _pkgDescription = new YQPkgDescriptionView( splitter ); @@ -133,7 +133,7 @@ _pkgList->addPkgItem( *it, tryCastToZyppPkg( zyppObj ) ); } - +#if FIXME // Display description of the first pkg with that name YQPkgObjListItem * firstItem = dynamic_cast<YQPkgObjListItem *> ( _pkgList->firstChild() ); @@ -142,6 +142,7 @@ _pkgDescription->showDetailsIfVisible( firstItem->selectable() ); else _pkgDescription->clear(); +#endif YQUI::ui()->normalCursor(); } @@ -150,7 +151,11 @@ bool YQPkgDescriptionDialog::isEmpty() const { - return _pkgList->firstChild() == 0; +#if FIXME + return _pkgList->childCount() == 0; +#else + return true; +#endif } Modified: branches/tmp/coolo/qt4-port/src/pkg/YQPkgDiskUsageList.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/coolo/qt4-port/src/pkg/YQPkgDiskUsageList.cc?rev=42558&r1=42557&r2=42558&view=diff ============================================================================== --- branches/tmp/coolo/qt4-port/src/pkg/YQPkgDiskUsageList.cc (original) +++ branches/tmp/coolo/qt4-port/src/pkg/YQPkgDiskUsageList.cc Fri Nov 30 14:56:02 2007 @@ -18,13 +18,12 @@ /-*/ -#define QT3_SUPPORT - #define y2log_component "qt-pkg" #include <ycp/y2log.h> #include <q3header.h> #include <qstyle.h> +#include <QHeaderView> //Added by qt3to4: #include <qevent.h> @@ -114,7 +113,9 @@ y2error( "No entry for mount point %s", partitionDu.dir.c_str() ); } +#if FIXME sort(); +#endif postPendingWarnings(); } @@ -149,10 +150,12 @@ QSize YQPkgDiskUsageList::sizeHint() const { - int width = header()->headerWidth() + #ifdef FIXME + int width = header()->headerWidth() + style().pixelMetric( QStyle::PM_ScrollBarExtent, verticalScrollBar() ); #else + int width = header()->sizeHint().width() + 30; #endif Modified: branches/tmp/coolo/qt4-port/src/pkg/YQPkgLangList.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/coolo/qt4-port/src/pkg/YQPkgLangList.cc?rev=42558&r1=42557&r2=42558&view=diff ============================================================================== --- branches/tmp/coolo/qt4-port/src/pkg/YQPkgLangList.cc (original) +++ branches/tmp/coolo/qt4-port/src/pkg/YQPkgLangList.cc Fri Nov 30 14:56:02 2007 @@ -36,6 +36,7 @@ y2debug( "Creating language list" ); int numCol = 0; +#if FIXME addColumn( "" ); _statusCol = numCol++; // Translators: Table column heading for language ISO code like "de_DE", "en_US" @@ -45,6 +46,7 @@ // Full (human readable) language / country name like "German (Austria)" addColumn( _( "Language" ) ); _summaryCol = numCol++; setAllColumnsShowFocus( true ); +#endif connect( this, SIGNAL( selectionChanged ( Q3ListViewItem * ) ), this, SLOT ( filter() ) ); @@ -172,12 +174,16 @@ YQPkgLangListItem * YQPkgLangList::selection() const { +#if FIXME Q3ListViewItem * item = selectedItem(); if ( ! item ) return 0; return dynamic_cast<YQPkgLangListItem *> (item); +#else + return 0; +#endif } Modified: branches/tmp/coolo/qt4-port/src/pkg/YQPkgList.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/coolo/qt4-port/src/pkg/YQPkgList.cc?rev=42558&r1=42557&r2=42558&view=diff ============================================================================== --- branches/tmp/coolo/qt4-port/src/pkg/YQPkgList.cc (original) +++ branches/tmp/coolo/qt4-port/src/pkg/YQPkgList.cc Fri Nov 30 14:56:02 2007 @@ -41,6 +41,7 @@ _srpmStatusCol = -42; int numCol = 0; +#if FIXME addColumn( "" ); _statusCol = numCol++; // _statusCol = numCol; addColumn( _( "Package" ) ); _nameCol = numCol++; @@ -71,6 +72,7 @@ setAllColumnsShowFocus( true ); createActions(); +#endif createSourceRpmContextMenu(); } @@ -194,6 +196,7 @@ YQPkgList::setInstallCurrentSourceRpm( bool installSourceRpm, bool selectNextItem ) { +#if FIXME QTreeWidgetItem * listViewItem = selectedItem(); if ( ! listViewItem ) @@ -211,6 +214,7 @@ setSelected( item->nextSibling(), true ); // emits signals } } +#endif } @@ -220,6 +224,7 @@ if ( ! _editable ) return; +#if FIXME QTreeWidgetItem * listViewItem = firstChild(); while ( listViewItem ) @@ -233,6 +238,7 @@ listViewItem = listViewItem->nextSibling(); } +#endif } @@ -407,6 +413,7 @@ // Write all items // +#if FIXME const QTreeWidgetItem * item = firstChild(); while ( item ) @@ -434,7 +441,7 @@ item = item->nextSibling(); } - +#endif // Clean up if ( file ) @@ -607,8 +614,9 @@ YQIconPool::disabledPkgNoInst(); } } - +#if FIXME setPixmap( srpmStatusCol(), icon ); +#endif } @@ -753,6 +761,7 @@ int width, int alignment ) { +#if FIXME if ( isDimmed() && ! YQUI::ui()->usingVisionImpairedPalette() ) { QColorGroup cg = colorGroup; @@ -795,6 +804,7 @@ QTreeWidgetItem::paintCell( painter, colorGroup, column, width, alignment ); } } +#endif } Modified: branches/tmp/coolo/qt4-port/src/pkg/YQPkgObjList.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/coolo/qt4-port/src/pkg/YQPkgObjList.cc?rev=42558&r1=42557&r2=42558&view=diff ============================================================================== --- branches/tmp/coolo/qt4-port/src/pkg/YQPkgObjList.cc (original) +++ branches/tmp/coolo/qt4-port/src/pkg/YQPkgObjList.cc Fri Nov 30 14:56:02 2007 @@ -267,6 +267,7 @@ void YQPkgObjList::setCurrentStatus( ZyppStatus newStatus, bool doSelectNextItem ) { +#if FIXME QTreeWidgetItem * listViewItem = selectedItem(); if ( ! listViewItem ) @@ -296,6 +297,7 @@ if ( doSelectNextItem ) selectNextItem(); +#endif } @@ -341,6 +343,7 @@ void YQPkgObjList::selectNextItem() { +#if FIXME QTreeWidgetItem * item = selectedItem(); if ( item && item->nextSibling() ) @@ -349,6 +352,7 @@ ensureItemVisible( item->nextSibling() ); // Scroll if necessary setSelected( item->nextSibling(), true ); // Emits signals } +#endif } @@ -519,6 +523,7 @@ void YQPkgObjList::updateActions( YQPkgObjListItem * item ) { +#if FIXME if ( !item) item = dynamic_cast<YQPkgObjListItem *> ( selectedItem() ); @@ -560,12 +565,14 @@ actionSetCurrentUpdate->setEnabled( false ); actionSetCurrentProtected->setEnabled( false ); } +#endif } void YQPkgObjList::keyPressEvent( QKeyEvent * event ) { +#if FIXME if ( event ) { unsigned special_combo = ( Qt::ControlButton | Qt::ShiftButton | Qt::AltButton ); @@ -579,7 +586,6 @@ } } - QTreeWidgetItem * selectedListViewItem = selectedItem(); if ( selectedListViewItem ) @@ -681,8 +687,8 @@ } } } - - Q3ListView::keyPressEvent( event ); +#endif + QY2ListView::keyPressEvent( event ); } @@ -810,6 +816,7 @@ void YQPkgObjList::exclude( YQPkgObjListItem * item, bool exclude ) { +#if FIXME if ( exclude == item->isExcluded() ) return; @@ -839,6 +846,7 @@ Q3ListView::insertItem( item ); } } +#endif } @@ -1030,6 +1038,7 @@ void YQPkgObjListItem::setStatusIcon() { +#if FIXME if ( statusCol() >= 0 ) { bool enabled = editable() && _pkgObjList->editable(); @@ -1066,7 +1075,7 @@ _selectable->theObj()->summary().c_str() ); } } - +#endif } Modified: branches/tmp/coolo/qt4-port/src/pkg/YQPkgPatchList.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/coolo/qt4-port/src/pkg/YQPkgPatchList.cc?rev=42558&r1=42557&r2=42558&view=diff ============================================================================== --- branches/tmp/coolo/qt4-port/src/pkg/YQPkgPatchList.cc (original) +++ branches/tmp/coolo/qt4-port/src/pkg/YQPkgPatchList.cc Fri Nov 30 14:56:02 2007 @@ -54,6 +54,7 @@ _filterCriteria = RelevantPatches; int numCol = 0; +#if FIXME addColumn( "" ); _statusCol = numCol++; addColumn( _( "Patch" ) ); _nameCol = numCol++; addColumn( _( "Summary" ) ); _summaryCol = numCol++; @@ -75,6 +76,7 @@ setSorting( categoryCol() ); fillList(); +#endif y2debug( "Creating patch list done" ); } @@ -233,9 +235,10 @@ } } - +#if FIXME if ( ! firstChild() ) message( _( "No patches available." ) ); +#endif y2debug( "patch list filled" ); } @@ -352,12 +355,16 @@ YQPkgPatchListItem * YQPkgPatchList::selection() const { +#if FIXME Q3ListViewItem * item = selectedItem(); if ( ! item ) return 0; return dynamic_cast<YQPkgPatchListItem *> (item); +#else + return 0; +#endif } @@ -588,7 +595,7 @@ * +1 if this > other **/ int -YQPkgPatchListItem::compare( Q3ListViewItem * otherListViewItem, +YQPkgPatchListItem::compare( QTreeWidgetItem * otherListViewItem, int col, bool ascending ) const { Modified: branches/tmp/coolo/qt4-port/src/pkg/YQPkgPatchList.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/coolo/qt4-port/src/pkg/YQPkgPatchList.h?rev=42558&r1=42557&r2=42558&view=diff ============================================================================== --- branches/tmp/coolo/qt4-port/src/pkg/YQPkgPatchList.h (original) +++ branches/tmp/coolo/qt4-port/src/pkg/YQPkgPatchList.h Fri Nov 30 14:56:02 2007 @@ -273,7 +273,7 @@ * * Reimplemented from QListViewItem. **/ - virtual int compare( Q3ListViewItem * other, + virtual int compare( QTreeWidgetItem * other, int col, bool ascending ) const; Modified: branches/tmp/coolo/qt4-port/src/pkg/YQPkgPatternList.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/coolo/qt4-port/src/pkg/YQPkgPatternList.cc?rev=42558&r1=42557&r2=42558&view=diff ============================================================================== --- branches/tmp/coolo/qt4-port/src/pkg/YQPkgPatternList.cc (original) +++ branches/tmp/coolo/qt4-port/src/pkg/YQPkgPatternList.cc Fri Nov 30 14:56:02 2007 @@ -45,6 +45,7 @@ y2debug( "Creating pattern list" ); int numCol = 0; +#if FIXME addColumn( "" ); _statusCol = numCol++; // Translators: "Pattern" refers to so-called "installation patterns", @@ -58,10 +59,10 @@ // Can use the same colum for "broken" and "satisfied": // Both states are mutually exclusive - + _satisfiedIconCol = _summaryCol; _brokenIconCol = _summaryCol; - + header()->setStretchEnabled( _statusCol , false ); header()->setStretchEnabled( _summaryCol, true ); @@ -79,7 +80,7 @@ fillList(); selectSomething(); } - +#endif y2debug( "Creating pattern list done" ); } @@ -214,12 +215,16 @@ YQPkgPatternListItem * YQPkgPatternList::selection() const { +#if FIXME QTreeWidgetItem * item = selectedItem(); if ( ! item ) return 0; return dynamic_cast<YQPkgPatternListItem *> (item); +#else + return 0; +#endif } @@ -229,6 +234,7 @@ int col, const QPoint & pos ) { +#if FIXME YQPkgPatternCategoryItem * categoryItem = dynamic_cast<YQPkgPatternCategoryItem *> (listViewItem); @@ -246,12 +252,14 @@ { YQPkgObjList::pkgObjClicked( button, listViewItem, col, pos ); } +#endif } void YQPkgPatternList::selectSomething() { +#if FIXME QTreeWidgetItemIterator it( this ); while ( *it ) @@ -268,6 +276,7 @@ ++it; } +#endif } @@ -346,7 +355,7 @@ if ( otherCategoryItem ) // Patterns without category should always be sorted return -1; // before any category - return QTreeWidgetItem::compare( otherListViewItem, col, ascending ); + return false; //FIXME QTreeWidgetItem::compare( otherListViewItem, col, ascending ); } @@ -380,7 +389,7 @@ int alignment ) { painter->setFont( YQUI::yqApp()->headingFont() ); - QY2ListViewItem::paintCell( painter, colorGroup, column, width, alignment ); + //FIXME QY2ListViewItem::paintCell( painter, colorGroup, column, width, alignment ); } @@ -403,7 +412,7 @@ void YQPkgPatternCategoryItem::setOpen( bool open ) { - QTreeWidgetItem::setOpen( open ); + //FIXME QTreeWidgetItem::setOpen( open ); setTreeIcon(); } @@ -411,11 +420,12 @@ void YQPkgPatternCategoryItem::setTreeIcon() { +#if FIXME setPixmap( _patternList->statusCol(), isOpen() ? YQIconPool::treeMinus() : YQIconPool::treePlus() ); - +#endif } @@ -443,7 +453,7 @@ if ( otherPatternListitem ) // Patterns without category should always be sorted return 1; // before any category - return QTreeWidgetItem::compare( otherListViewItem, col, ascending ); + return false; // FIXME QTreeWidgetItem::compare( otherListViewItem, col, ascending ); } Modified: branches/tmp/coolo/qt4-port/src/pkg/YQPkgProductList.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/coolo/qt4-port/src/pkg/YQPkgProductList.cc?rev=42558&r1=42557&r2=42558&view=diff ============================================================================== --- branches/tmp/coolo/qt4-port/src/pkg/YQPkgProductList.cc (original) +++ branches/tmp/coolo/qt4-port/src/pkg/YQPkgProductList.cc Fri Nov 30 14:56:02 2007 @@ -38,6 +38,7 @@ y2debug( "Creating product list" ); int numCol = 0; +#if FIXME addColumn( "" ); _statusCol = numCol++; addColumn( _( "Product" ) ); _nameCol = numCol++; addColumn( _( "Summary" ) ); _summaryCol = numCol++; @@ -49,6 +50,7 @@ setSorting( nameCol() ); fillList(); selectSomething(); +#endif y2debug( "Creating product list done" ); } Modified: branches/tmp/coolo/qt4-port/src/pkg/YQPkgRepoList.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/coolo/qt4-port/src/pkg/YQPkgRepoList.cc?rev=42558&r1=42557&r2=42558&view=diff ============================================================================== --- branches/tmp/coolo/qt4-port/src/pkg/YQPkgRepoList.cc (original) +++ branches/tmp/coolo/qt4-port/src/pkg/YQPkgRepoList.cc Fri Nov 30 14:56:02 2007 @@ -46,7 +46,7 @@ _urlCol = -1; int numCol = 0; - +#if FIXME // Column headers for repository list addColumn( _( "Name" ) ); _nameCol = numCol++; addColumn( _( "URL" ) ); _urlCol = numCol++; @@ -59,6 +59,7 @@ fillList(); selectSomething(); +#endif y2debug( "Creating repository list done" ); } @@ -105,6 +106,7 @@ void YQPkgRepoList::filter() { +#if FIXME emit filterStart(); y2milestone( "Collecting packages in selected repositories..." ); @@ -192,6 +194,7 @@ y2debug( "Packages sent to package list. Elapsed time: %f sec", stopWatch.elapsed() / 1000.0 ); emit filterFinished(); +#endif } @@ -205,12 +208,16 @@ YQPkgRepoListItem * YQPkgRepoList::selection() const { +#if FIXME Q3ListViewItem * item = selectedItem(); if ( ! item ) return 0; return dynamic_cast<YQPkgRepoListItem *> (item); +#else + return 0; +#endif } Modified: branches/tmp/coolo/qt4-port/src/pkg/YQPkgSelList.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/coolo/qt4-port/src/pkg/YQPkgSelList.cc?rev=42558&r1=42557&r2=42558&view=diff ============================================================================== --- branches/tmp/coolo/qt4-port/src/pkg/YQPkgSelList.cc (original) +++ branches/tmp/coolo/qt4-port/src/pkg/YQPkgSelList.cc Fri Nov 30 14:56:02 2007 @@ -37,13 +37,15 @@ y2debug( "Creating selection list" ); int numCol = 0; +#if FIXME addColumn( "" ); _statusCol = numCol++; addColumn( _( "Selection" ) ); _summaryCol = numCol++; setAllColumnsShowFocus( true ); +#endif _satisfiedIconCol = _summaryCol; _brokenIconCol = _summaryCol; - + if ( autoFilter ) { connect( this, SIGNAL( selectionChanged( QTreeWidgetItem * ) ), @@ -158,12 +160,16 @@ YQPkgSelListItem * YQPkgSelList::selection() const { +#if FIXME QTreeWidgetItem * item = selectedItem(); if ( ! item ) return 0; return dynamic_cast<YQPkgSelListItem *> (item); +#else + return 0; +#endif } Modified: branches/tmp/coolo/qt4-port/src/pkg/YQPkgVersionsView.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/coolo/qt4-port/src/pkg/YQPkgVersionsView.cc?rev=42558&r1=42557&r2=42558&view=diff ============================================================================== --- branches/tmp/coolo/qt4-port/src/pkg/YQPkgVersionsView.cc (original) +++ branches/tmp/coolo/qt4-port/src/pkg/YQPkgVersionsView.cc Fri Nov 30 14:56:02 2007 @@ -50,12 +50,14 @@ _nameCol = -42; _summaryCol = -42; +#if FIXME int numCol = 0; addColumn( _( "Version" ) ); _versionCol = numCol++; addColumn( _( "Arch." ) ); _archCol = numCol++; addColumn( _( "Product" ) ); _productCol = numCol++; addColumn( _( "Repository" ) ); _repoCol = numCol++; addColumn( _( "URL" ) ); _urlCol = numCol++; +#endif _statusCol = _productCol; _nameCol = _versionCol; @@ -118,6 +120,7 @@ if ( ! selectable ) return; +#if FIXME QY2CheckListItem * root = new QY2CheckListItem( this, selectable->theObj()->name().c_str(), Q3CheckListItem::Controller ); Q_CHECK_PTR( root ); @@ -149,12 +152,15 @@ if ( selectable->hasInstalledObj() && ! installedIsAvailable ) new YQPkgVersion( this, root, selectable, selectable->installedObj(), false ); + +#endif } void YQPkgVersionsView::checkForChangedCandidate() { +#if FIXME if ( ! firstChild() || ! _selectable ) return; @@ -220,6 +226,7 @@ item = item->nextSibling(); } +#endif } @@ -239,15 +246,15 @@ ZyppSel selectable, ZyppObj zyppObj, bool enabled ) - : QY2CheckListItem( parent, "", + : QY2CheckListItem( parent, "" /* enabled ? Q3CheckListItem::RadioButton : - Q3CheckListItem::Controller ) // cheap way to make it read-only + Q3CheckListItem::Controller */ ) // cheap way to make it read-only , _pkgVersionList( pkgVersionList ) , _selectable( selectable ) , _zyppObj( zyppObj ) { - setOn( _zyppObj == _selectable->candidateObj() ); + // FIXME setOn( _zyppObj == _selectable->candidateObj() ); if ( versionCol() >= 0 ) setText( versionCol(), zyppObj->edition().asString().c_str() ); if ( archCol() >= 0 ) setText( archCol(), zyppObj->arch().asString().c_str() ); @@ -274,7 +281,7 @@ if ( _zyppObj->edition() == _selectable->installedObj()->edition() && _zyppObj->arch() == _selectable->installedObj()->arch() ) { - setPixmap( statusCol(), YQIconPool::pkgKeepInstalled() ); + // FIXME setPixmap( statusCol(), YQIconPool::pkgKeepInstalled() ); setBackgroundColor( QColor( 0xF0, 0xF0, 0xF0 ) ); // light grey setTextColor( QColor( 0, 0x90, 0 ) ); // green } @@ -308,7 +315,7 @@ * +1 if this > other **/ int -YQPkgVersion::compare( Q3ListViewItem * otherListViewItem, +YQPkgVersion::compare( QTreeWidgetItem * otherListViewItem, int col, bool ascending ) const { Modified: branches/tmp/coolo/qt4-port/src/pkg/YQPkgVersionsView.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/coolo/qt4-port/src/pkg/YQPkgVersionsView.h?rev=42558&r1=42557&r2=42558&view=diff ============================================================================== --- branches/tmp/coolo/qt4-port/src/pkg/YQPkgVersionsView.h (original) +++ branches/tmp/coolo/qt4-port/src/pkg/YQPkgVersionsView.h Fri Nov 30 14:56:02 2007 @@ -167,7 +167,7 @@ * * Reimplemented from QListViewItem **/ - virtual int compare( Q3ListViewItem * other, + virtual int compare( QTreeWidgetItem * other, int col, bool ascending ) const; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
coolo@svn.opensuse.org