add missing widgets
svn path=/trunk/KDE/kdelibs/; revision=903255
This commit is contained in:
parent
93a5168b01
commit
12fc12b692
@ -23,6 +23,7 @@
|
|||||||
#include <QGraphicsLinearLayout>
|
#include <QGraphicsLinearLayout>
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
|
|
||||||
|
#include "widgets/busywidget.h"
|
||||||
#include "widgets/checkbox.h"
|
#include "widgets/checkbox.h"
|
||||||
#include "widgets/combobox.h"
|
#include "widgets/combobox.h"
|
||||||
#include "widgets/flashinglabel.h"
|
#include "widgets/flashinglabel.h"
|
||||||
@ -31,11 +32,18 @@
|
|||||||
#include "widgets/iconwidget.h"
|
#include "widgets/iconwidget.h"
|
||||||
#include "widgets/label.h"
|
#include "widgets/label.h"
|
||||||
#include "widgets/lineedit.h"
|
#include "widgets/lineedit.h"
|
||||||
|
#include "widgets/meter.h"
|
||||||
#include "widgets/pushbutton.h"
|
#include "widgets/pushbutton.h"
|
||||||
#include "widgets/radiobutton.h"
|
#include "widgets/radiobutton.h"
|
||||||
|
#include "widgets/scrollbar.h"
|
||||||
|
#include "widgets/signalplotter.h"
|
||||||
#include "widgets/slider.h"
|
#include "widgets/slider.h"
|
||||||
|
#include "widgets/svgwidget.h"
|
||||||
#include "widgets/tabbar.h"
|
#include "widgets/tabbar.h"
|
||||||
#include "widgets/textedit.h"
|
#include "widgets/textedit.h"
|
||||||
|
#include "widgets/toolbutton.h"
|
||||||
|
#include "widgets/treeview.h"
|
||||||
|
#include "widgets/webview.h"
|
||||||
|
|
||||||
namespace Plasma
|
namespace Plasma
|
||||||
{
|
{
|
||||||
@ -52,6 +60,7 @@ UiLoader::UiLoader(QObject *parent)
|
|||||||
d(new UiLoaderPrivate())
|
d(new UiLoaderPrivate())
|
||||||
{
|
{
|
||||||
d->widgets
|
d->widgets
|
||||||
|
<< "BusyWidget"
|
||||||
<< "CheckBox"
|
<< "CheckBox"
|
||||||
<< "ComboBox"
|
<< "ComboBox"
|
||||||
<< "FlashingLabel"
|
<< "FlashingLabel"
|
||||||
@ -60,11 +69,18 @@ UiLoader::UiLoader(QObject *parent)
|
|||||||
<< "IconWidget"
|
<< "IconWidget"
|
||||||
<< "Label"
|
<< "Label"
|
||||||
<< "LineEdit"
|
<< "LineEdit"
|
||||||
|
<< "Meter"
|
||||||
<< "PushButton"
|
<< "PushButton"
|
||||||
<< "RadioButton"
|
<< "RadioButton"
|
||||||
|
<< "ScrollBar"
|
||||||
|
<< "SignalPlotter"
|
||||||
<< "Slider"
|
<< "Slider"
|
||||||
|
<< "SvgWidget"
|
||||||
<< "TabBar"
|
<< "TabBar"
|
||||||
<< "TextEdit";
|
<< "TextEdit"
|
||||||
|
<< "ToolButton"
|
||||||
|
<< "TreeView"
|
||||||
|
<< "WebView";
|
||||||
|
|
||||||
d->layouts
|
d->layouts
|
||||||
<< "GridLayout"
|
<< "GridLayout"
|
||||||
@ -83,7 +99,9 @@ QStringList UiLoader::availableWidgets() const
|
|||||||
|
|
||||||
QGraphicsWidget *UiLoader::createWidget(const QString &className, QGraphicsWidget *parent)
|
QGraphicsWidget *UiLoader::createWidget(const QString &className, QGraphicsWidget *parent)
|
||||||
{
|
{
|
||||||
if (className == QString("CheckBox")) {
|
if (className == QString("BusyWidget")) {
|
||||||
|
return new BusyWidget(parent);
|
||||||
|
} else if (className == QString("CheckBox")) {
|
||||||
return new CheckBox(parent);
|
return new CheckBox(parent);
|
||||||
} else if (className == QString("ComboBox")) {
|
} else if (className == QString("ComboBox")) {
|
||||||
return new ComboBox(parent);
|
return new ComboBox(parent);
|
||||||
@ -99,16 +117,30 @@ QGraphicsWidget *UiLoader::createWidget(const QString &className, QGraphicsWidge
|
|||||||
return new Label(parent);
|
return new Label(parent);
|
||||||
} else if (className == QString("LineEdit")) {
|
} else if (className == QString("LineEdit")) {
|
||||||
return new LineEdit(parent);
|
return new LineEdit(parent);
|
||||||
|
} else if (className == QString("Meter")) {
|
||||||
|
return new Meter(parent);
|
||||||
} else if (className == QString("PushButton")) {
|
} else if (className == QString("PushButton")) {
|
||||||
return new PushButton(parent);
|
return new PushButton(parent);
|
||||||
} else if (className == QString("RadioButton")) {
|
} else if (className == QString("RadioButton")) {
|
||||||
return new RadioButton(parent);
|
return new RadioButton(parent);
|
||||||
|
} else if (className == QString("ScrollBar")) {
|
||||||
|
return new ScrollBar(parent);
|
||||||
|
} else if (className == QString("SignalPlotter")) {
|
||||||
|
return new SignalPlotter(parent);
|
||||||
} else if (className == QString("Slider")) {
|
} else if (className == QString("Slider")) {
|
||||||
return new Slider(parent);
|
return new Slider(parent);
|
||||||
|
} else if (className == QString("SvgWidget")) {
|
||||||
|
return new SvgWidget(parent);
|
||||||
} else if (className == QString("TabBar")) {
|
} else if (className == QString("TabBar")) {
|
||||||
return new TabBar(parent);
|
return new TabBar(parent);
|
||||||
} else if (className == QString("TextEdit")) {
|
} else if (className == QString("TextEdit")) {
|
||||||
return new TextEdit(parent);
|
return new TextEdit(parent);
|
||||||
|
} else if (className == QString("ToolButton")) {
|
||||||
|
return new ToolButton(parent);
|
||||||
|
} else if (className == QString("TreeView")) {
|
||||||
|
return new TreeView(parent);
|
||||||
|
} else if (className == QString("WebView")) {
|
||||||
|
return new WebView(parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user