1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-12 09:04:33 +02:00

added DynamicQmlWidget (not doing anything yet)

This commit is contained in:
Michael Zanetti
2012-07-03 16:05:34 +02:00
parent 051282be06
commit c05bae9e8c
3 changed files with 66 additions and 0 deletions

View File

@@ -80,6 +80,7 @@ set( libGuiSources
playlist/dynamic/echonest/EchonestControl.cpp
playlist/dynamic/echonest/EchonestSteerer.cpp
playlist/dynamic/widgets/DynamicWidget.cpp
playlist/dynamic/widgets/DynamicQmlWidget.cpp
playlist/dynamic/widgets/DynamicControlWrapper.cpp
playlist/dynamic/widgets/DynamicControlList.cpp
playlist/dynamic/widgets/ReadOrWriteWidget.cpp

View File

@@ -0,0 +1,24 @@
#include "DynamicQmlWidget.h"
#include "utils/TomahawkUtilsGui.h"
#include <QUrl>
namespace Tomahawk
{
DynamicQmlWidget::DynamicQmlWidget( const dynplaylist_ptr& playlist, QWidget* parent)
: QDeclarativeView( parent )
{
setResizeMode(QDeclarativeView::SizeRootObjectToView);
setSource(QUrl("qrc" RESPATH "qml/ArtistInfoScene.qml"));
}
DynamicQmlWidget::~DynamicQmlWidget()
{
}
}

View File

@@ -0,0 +1,41 @@
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
*
* Copyright 2012, Michael Zanetti <mzanetti@kde.org>
*
* Tomahawk is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Tomahawk is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DYNAMIC_QML_WIDGET_H
#define DYNAMIC_QML_WIDGET_H
#include "ViewPage.h"
#include "Typedefs.h"
#include <QDeclarativeView>
namespace Tomahawk
{
class DynamicQmlWidget : public QDeclarativeView, public Tomahawk::ViewPage
{
Q_OBJECT
public:
explicit DynamicQmlWidget( const dynplaylist_ptr& playlist, QWidget* parent = 0);
virtual ~DynamicQmlWidget();
};
}
#endif // DYNAMIC_QML_WIDGET_H