--- a/mmsharing/livecommsui/lcui/src/lcvideowidget.cpp Wed Jun 23 18:09:54 2010 +0300
+++ b/mmsharing/livecommsui/lcui/src/lcvideowidget.cpp Tue Jul 06 14:13:16 2010 +0300
@@ -50,23 +50,38 @@
QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
{
Q_UNUSED(widget)
+ QPointF initialPosition(0,0);
+
+ //Workaround: widgets positioning takes time, do not paint if they are not
+ //positioned correctly.
+
+ if ( this->pos() != initialPosition ) {
painter->save();
if ( mShowVideo ){
QPainter::CompositionMode origCompositionMode = painter->compositionMode();
painter->setCompositionMode(QPainter::CompositionMode_Source);
+ #if ( defined __WINSCW__ ) || ( defined __WINS__ )
+ if( mLocalPlayer ){
+ painter->setBrush(QColor(Qt::darkGreen));
+ }else{
+ painter->setBrush(QColor(Qt::darkRed));
+ }
+ #else
painter->setBrush(QColor(0,0,0,0));
+ #endif
painter->drawRoundedRect( option->exposedRect,
lcVideoWidgetCornerRounding, lcVideoWidgetCornerRounding);
painter->setCompositionMode(origCompositionMode); // restore
- } else {
- painter->setBrush(QColor(0,0,0,255));
- painter->drawRoundedRect( option->exposedRect,
- lcVideoWidgetCornerRounding, lcVideoWidgetCornerRounding);
+ } else {
+ painter->setBrush(QColor(0,0,0,255));
+ painter->drawRoundedRect( option->exposedRect,
+ lcVideoWidgetCornerRounding, lcVideoWidgetCornerRounding);
+ }
+ painter->restore();
}
- painter->restore();
}
// -----------------------------------------------------------------------------