--- v14_libzstyle3.cpp	2003-09-09 23:31:55.000000000 +0200
+++ v15_libzstyle3.cpp	2003-09-09 23:46:31.000000000 +0200
@@ -595,49 +595,20 @@
 //
 // launcher background handling
 //
+#if 0
+typedef void ( *qiv_ctor_t ) ( QIconView *, QWidget *, char const *, unsigned int);
 
-
-enum ViewMode { Icon, List };    
-enum BackgroundType { Ruled, SolidColor, Image };
-                
-static QColor *bgColor = 0;
-static QPixmap *bgPixmap = 0;
-
-typedef void ( *qiv_selmode_t ) ( QIconView *, QIconView::SelectionMode );
-typedef void ( *qiv_draw_t ) ( QIconView *, QPainter *, int, int, int, int );
-
-
-
-static void calculateGrid ( QIconView *that, QIconView::ItemTextPos pos )
+void __9QIconViewP7QWidgetPCcUi ( QIconView *that, QWidget *parent, char const *name, unsigned int i )
 {
-	int dw = QApplication::desktop ( )-> width ( );
-	int viewerWidth = dw - that-> style ( ). scrollBarExtent ( ). width ( );
+	static qiv_ctor_t qivctor = 0;
 
-	if ( pos == QIconView::Bottom ) {
-		int cols = 3;
-		that-> setSpacing ( 4 );
-		that-> setGridX (( viewerWidth - ( cols + 1 ) * that-> spacing ( )) / cols );
-		that-> setGridY ( that-> fontMetrics ( ). height ( ) * 2 + 24 );
-	} else {
-		int cols = 2;
-		that-> setSpacing ( 2 );
-		that-> setGridX (( viewerWidth - ( cols + 1 ) * that-> spacing ( )) / cols );
-		that-> setGridY ( that-> fontMetrics ( ). height ( ) + 2 );
-	}
-	that-> arrangeItemsInGrid ( );
-}
-
-
-void setSelectionMode__9QIconViewQ29QIconView13SelectionMode ( QIconView *that, QIconView::SelectionMode m )
-{
-	static qiv_selmode_t qselmode = 0;
-
-	if ( !qselmode )
-		qselmode = (qiv_selmode_t) resolve_symbol ( "setSelectionMode__9QIconViewQ29QIconView13SelectionMode" );
-	if ( !qselmode )
+	if ( !qivctor )
+		qivctor = (qiv_ctor_t) resolve_symbol ( "__9QIconViewP7QWidgetPCcUi" );
+	if ( !qivctor )
 		return;
 	else
-		( *qselmode ) ( that, m );
+		( *qivctor ) ( that, parent, name, i );
+
 
 	static QList <QIconView> seen;
 
@@ -649,52 +620,6 @@
 	Config cfg ( "zstyle" );
 	cfg. setGroup ( "Launcher" );
 
-	QString bgType = cfg.readEntry( "BackgroundType", "Ruled" );
-	if ( bgType == "Ruled" ) { // No tr
-		bgPixmap = new QPixmap ( that-> width ( ), 9 );
-		QPainter painter ( bgPixmap );
-		for ( int i = 0; i < 3; i++ ) {
-			painter. setPen   ( Qt::white );
-			painter. drawLine ( 0, i*3, that-> width()-1, i*3 );
-			painter. drawLine ( 0, i*3+1, that-> width()-1, i*3+1 );
-			painter. setPen   ( that-> colorGroup ( ). background ( ). light ( 105 ) );
-			painter. drawLine ( 0, i*3+2, that-> width()-1, i*3+2 );
-		}
-		painter. end ( );
-	}
-	if ( bgType == "Image" ) { // No tr
-		QString pm = cfg.readEntry( "BackgroundImage", "launcher/opie-background" );
-		
-		bgPixmap = new QPixmap ( Resource::loadPixmap ( pm ));
-		if ( bgPixmap-> isNull ( )) {
-			QImageIO imgio; 
-			imgio. setFileName ( pm );
-			QSize ds = qApp-> desktop ( )-> size ( );
-			QString param ( "Scale( %1, %2, ScaleMin )" ); // No tr
-			imgio. setParameters ( param. arg ( ds. width ( )). arg ( ds. height ( )). latin1 ( ));
-			imgio. read ( );
-			*bgPixmap = imgio. image ( );
-		}
-		if ( !bgPixmap-> isNull ( )) { // fix for bg with alpha channel 
-			QPixmap tmp ( bgPixmap-> size ( ), bgPixmap-> depth ( ));
-		
-			QPainter p ( &tmp );
-			p. fillRect ( 0, 0, tmp. width ( ), tmp. height ( ), bgColor ? *bgColor : Qt::white );
-			p. drawPixmap ( 0, 0, *bgPixmap );
-			p. end ( );
-	
-			*bgPixmap = tmp;
-		}
-		if ( bgPixmap-> isNull ( )) {
-			delete bgPixmap;
-			bgPixmap = 0;
-		}
-	} 
-	else if ( bgType == "SolidColor" ) {
-		QString c = cfg.readEntry( "BackgroundColor" );
-		if ( !c. isEmpty ( ) && QColor ( c ). isValid ( ))
-			bgColor = new QColor ( c );
-	}
 	
 	QString textCol = cfg. readEntry ( "TextColor" );
 	if ( !textCol. isEmpty ( ) && QColor ( textCol ). isValid ( )) {
@@ -707,97 +632,6 @@
 	QStringList font = cfg. readListEntry( "Font", ',' );
 	if ( font.count ( ) == 4 )
 		that-> setFont ( QFont ( font [0], font [1]. toInt ( ), font [2]. toInt ( ), font [3]. toInt ( ) != 0 ) );
-		
-	calculateGrid ( that, QIconView::Bottom );
-}
-
-
-static void drawBackground ( QIconView *that, QPainter *p, const QRect &r )
-{
-	if ( bgPixmap ) {
-		p-> drawTiledPixmap ( r, *bgPixmap, QPoint (
-		                       ( r. x ( ) + that-> contentsX ( )) % bgPixmap-> width ( ),
-		                       ( r. y ( ) + that-> contentsY ( )) % bgPixmap-> height ( )));
-	} 
-	else
-		p-> fillRect ( r, bgColor ? *bgColor : that-> colorGroup ( ). color ( QColorGroup::Base ));
-}
-
-
-void drawContents__9QIconViewP8QPainteriiii ( QIconView *that, QPainter *p, int cx, int cy, int cw, int ch )
-{
-	if ( !islauncher ) {
-		static qiv_draw_t qdraw = 0;
-
-		if ( !qdraw )
-			qdraw = (qiv_draw_t) resolve_symbol ( "drawContents__9QIconViewP8QPainteriiii" );
-		if ( qdraw )
-			( *qdraw ) ( that, p, cx, cy, cw, ch );
-		return;
-	}
-
-	if ( that-> d->dragging && that-> d->rubber )
-		that-> drawRubber( p );
-
-	QRect r = QRect( cx, cy, cw, ch );
-
-	QIconViewPrivate::ItemContainer *c = that-> d->firstContainer;
-	QRegion remaining( QRect( cx, cy, cw, ch ) );
-	bool alreadyIntersected = FALSE;
-	while ( c ) {
-		if ( c->rect.intersects( r ) ) {
-			p->save();
-			p->resetXForm();
-			QRect r2 = c->rect;
-			r2 = r2.intersect( r );
-			QRect r3( that-> contentsToViewport( QPoint( r2.x(), r2.y() ) ), QSize( r2.width(), r2.height() ) );
-			if ( that-> d->drawAllBack ) {
-				p->setClipRect( r3 );
-			} else {
-				QRegion reg = that-> d->clipRegion.intersect( r3 );
-				p->setClipRegion( reg );
-			}
-			drawBackground( that, p, r3 );
-			remaining = remaining.subtract( r3 );
-			p->restore();
-
-			QIconViewItem *item = c->items.first();
-			for ( ; item; item = c->items.next() ) {
-				if ( item->rect().intersects( r ) && !item->dirty ) {
-					p->save();
-					p->setFont( that-> font() );
-					item->paintItem( p, that-> colorGroup() );
-					p->restore();
-				}
-			}
-			alreadyIntersected = TRUE;
-		} else {
-			if ( alreadyIntersected )
-				break;
-		}
-		c = c->n;
-	}
-
-	if ( !remaining.isNull() && !remaining.isEmpty() ) {
-		p->save();
-		p->resetXForm();
-		if ( that-> d->drawAllBack ) {
-			p->setClipRegion( remaining );
-		} else {
-			remaining = that-> d->clipRegion.intersect( remaining );
-			p->setClipRegion( remaining );
-		}
-		drawBackground( that, p, remaining.boundingRect() );
-		p->restore();
-	}
-
-	if ( ( that-> hasFocus() || that-> viewport()->hasFocus() ) && that-> d->currentItem &&
-		 that-> d->currentItem->rect().intersects( r ) ) {
-		that-> d->currentItem->paintFocus( p, that-> colorGroup() );
-	}
-
-	if ( that-> d->dragging && that-> d->rubber )
-		that-> drawRubber ( p );
 }
 
-}
\ Kein Zeilenumbruch am Dateiende.
+#endif
