1
/****************************************************************************************
2
* Copyright (c) 2010 Téo Mrnjavac <teo@kde.org> *
4
* This program is free software; you can redistribute it and/or modify it under *
5
* the terms of the GNU General Public License as published by the Free Software *
6
* Foundation; either version 2 of the License, or (at your option) any later *
9
* This program is distributed in the hope that it will be useful, but WITHOUT ANY *
10
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A *
11
* PARTICULAR PURPOSE. See the GNU General Public License for more details. *
13
* You should have received a copy of the GNU General Public License along with *
14
* this program. If not, see <http://www.gnu.org/licenses/>. *
15
****************************************************************************************/
17
#include "TranscodingPropertyWidget.h"
19
#include "TranscodingPropertySliderWidget.h"
20
#include "TranscodingPropertySpinBoxWidget.h"
21
#include "TranscodingPropertyComboBoxWidget.h"
23
#include "core/support/Debug.h"
29
PropertyWidget::create( Property &property, QWidget * parent )
31
switch( property.type() )
33
case Property::NUMERIC:
34
return new PropertySpinBoxWidget( property, parent );
36
return new PropertyComboBoxWidget( property, parent );
37
case Property::TRADEOFF:
38
return new PropertySliderWidget( property, parent );
40
debug() << "Muy bad!";
45
} //namespace Transcoding