Author: dmacvicar Date: Fri Nov 30 12:03:18 2007 New Revision: 42536 URL: http://svn.opensuse.org/viewcvs/yast?rev=42536&view=rev Log: Ported YQAlignment Modified: branches/tmp/coolo/qt4-port/src/YQAlignment.cc branches/tmp/coolo/qt4-port/src/YQUI.h Modified: branches/tmp/coolo/qt4-port/src/YQAlignment.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/coolo/qt4-port/src/YQAlignment.cc?rev=42536&r1=42535&r2=42536&view=diff ============================================================================== --- branches/tmp/coolo/qt4-port/src/YQAlignment.cc (original) +++ branches/tmp/coolo/qt4-port/src/YQAlignment.cc Fri Nov 30 12:03:18 2007 @@ -76,7 +76,7 @@ if ( pixmapName.empty() ) // Delete any old background pixmap { - unsetPalette(); + setPalette(QPalette()); } else // Set a new background pixmap { @@ -88,7 +88,9 @@ } else { - setPaletteBackgroundPixmap( pixmap ); + QPalette palette; + palette.setBrush(backgroundRole(), QBrush(pixmap)); + setPalette(palette); } } } Modified: branches/tmp/coolo/qt4-port/src/YQUI.h URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/coolo/qt4-port/src/YQUI.h?rev=42536&r1=42535&r2=42536&view=diff ============================================================================== --- branches/tmp/coolo/qt4-port/src/YQUI.h (original) +++ branches/tmp/coolo/qt4-port/src/YQUI.h Fri Nov 30 12:03:18 2007 @@ -20,8 +20,9 @@ #define YQUI_h #include <qapplication.h> -#include <Qt/qmap.h> -#include <Qt/qtimer.h> +#include <QMap> +#include <QTimer> +#include <QPalette> #include <vector> #include "YSimpleEventHandler.h" -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org