--- a/videocollection/tsrc/stubs/src/videohintwidget.cpp Thu Apr 01 23:32:44 2010 +0300
+++ b/videocollection/tsrc/stubs/src/videohintwidget.cpp Fri Apr 16 18:13:14 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()