videocollection/tsrc/stubs/src/videohintwidget.cpp
changeset 17 69946d1824c4
parent 15 cf5481c2bc0b
child 44 518105d52e45
--- a/videocollection/tsrc/stubs/src/videohintwidget.cpp	Fri Apr 16 14:59:52 2010 +0300
+++ b/videocollection/tsrc/stubs/src/videohintwidget.cpp	Mon May 03 12:32:50 2010 +0300
@@ -16,6 +16,10 @@
 */
 
 #include "videohintwidget.h"
+#include "videohintwidgetdata.h"
+
+int VideoHintWidgetData::mSettedHintLevel = -1;
+bool VideoHintWidgetData::mSettedButtonShowLevel = false;
 
 VideoHintWidget::VideoHintWidget(VideoCollectionUiLoader *uiLoader,
     QGraphicsItem *parent):
@@ -41,14 +45,12 @@
 
 void VideoHintWidget::setLevel(HintLevel level)
 {
-    Q_UNUSED(level);
-    // not stubbed
+    VideoHintWidgetData::mSettedHintLevel = (int)level; 
 }
 
 void VideoHintWidget::setButtonShown(bool shown)
 {
-    Q_UNUSED(shown);
-    // not stubbed
+    VideoHintWidgetData::mSettedButtonShowLevel = shown;
 }
 
 void VideoHintWidget::orientationChangedSlot(Qt::Orientation targetOrientation)
@@ -59,12 +61,12 @@
 
 void VideoHintWidget::activate()
 {
-    // not stubbed
+    setVisible(true);
 }
 
 void VideoHintWidget::deactivate()
 {
-    // not stubbed
+    setVisible(false);
 }
 
 void VideoHintWidget::updateUiComponents()