1 /***************************************************************************
2 * Copyright (C) 2010 by Simon Andreas Eugster (simon.eu@gmail.com) *
3 * This file is part of kdenlive. See www.kdenlive.org. *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
9 ***************************************************************************/
11 #include "testwidget.h"
12 #include "ui_testwidget_ui.h"
17 TestWidget::TestWidget(Monitor *projMonitor, Monitor *clipMonitor, QWidget *parent) :
18 AbstractScopeWidget(projMonitor, clipMonitor, parent)
20 ui = new Ui::TestWidget_UI();
23 m_aTest = new QAction("Hallo. ", this);
24 m_menu->addAction(m_aTest);
27 TestWidget::~TestWidget()
33 ///// Implemented Methods /////
35 QImage TestWidget::renderHUD(uint)
37 emit signalHUDRenderingFinished(0, 1);
41 QImage TestWidget::renderScope(uint)
43 emit signalScopeRenderingFinished(0, 1);
47 QImage TestWidget::renderBackground(uint)
49 emit signalBackgroundRenderingFinished(0, 1);
53 QString TestWidget::widgetName() const { return "Testwidget"; }
54 bool TestWidget::isHUDDependingOnInput() const { return false; }
55 bool TestWidget::isScopeDependingOnInput() const { return false; }
56 bool TestWidget::isBackgroundDependingOnInput() const { return false; }
58 QRect TestWidget::scopeRect()
60 return QRect(QPoint(offset, ui->line->y() + 2*offset), this->rect().bottomRight() - QPoint(offset, offset));