Author: tgoettlicher
Date: Wed Feb 2 16:59:41 2011
New Revision: 63310
URL: http://svn.opensuse.org/viewcvs/yast?rev=63310&view=rev
Log:
added workaround for shadow in dialog title
Modified:
trunk/qt/src/YQWizard.cc
Modified: trunk/qt/src/YQWizard.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/YQWizard.cc?rev=63310&r1=63309&r2=63310&view=diff
==============================================================================
--- trunk/qt/src/YQWizard.cc (original)
+++ trunk/qt/src/YQWizard.cc Wed Feb 2 16:59:41 2011
@@ -61,6 +61,7 @@
#include
#include
#include
+#include <QGraphicsDropShadowEffect>
#include "QY2ListView.h"
#include "QY2Styler.h"
@@ -95,6 +96,8 @@
#define USE_ICON_ON_HELP_BUTTON 0
+//#define SHADOW_WORKAROUND 1
+
YQWizard *YQWizard::main_wizard = 0;
YQWizard::YQWizard( YWidget * parent,
@@ -754,6 +757,19 @@
_dialogHeading->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Minimum ) ); // hor/vert
_dialogHeading->setObjectName( "DialogHeading" );
+
+
+#ifdef SHADOW_WORKAROUND
+ // Workaround for text shadow until qt bug is fixed
+ // see: http://bugreports.qt.nokia.com/browse/QTBUG-5087
+ QGraphicsDropShadowEffect *effect = new QGraphicsDropShadowEffect(this);
+ effect->setBlurRadius(1);
+ effect->setColor(QColor("#DDDDDD"));
+ effect->setOffset(1,1);
+ _dialogHeading->setGraphicsEffect(effect);
+#endif
+
+
//
// Client area (the part that belongs to the YCP application)
//
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org