make it possible to instantiate a plain QGraphicsWidget
svn path=/trunk/KDE/kdebase/runtime/; revision=1181765
This commit is contained in:
parent
a9a5360678
commit
a421a1bd6a
@ -77,6 +77,7 @@ QGraphicsWidget *createToolButton(QGraphicsWidget *parent) { return new Plasma::
|
|||||||
QGraphicsWidget *createTreeView(QGraphicsWidget *parent) { return new Plasma::TreeView(parent); }
|
QGraphicsWidget *createTreeView(QGraphicsWidget *parent) { return new Plasma::TreeView(parent); }
|
||||||
QGraphicsWidget *createVideoWidget(QGraphicsWidget *parent) { return new Plasma::VideoWidget(parent); }
|
QGraphicsWidget *createVideoWidget(QGraphicsWidget *parent) { return new Plasma::VideoWidget(parent); }
|
||||||
QGraphicsWidget *createWebView(QGraphicsWidget *parent) { return new Plasma::WebView(parent); }
|
QGraphicsWidget *createWebView(QGraphicsWidget *parent) { return new Plasma::WebView(parent); }
|
||||||
|
QGraphicsWidget *createGraphicsWidget(QGraphicsWidget *parent) { return new QGraphicsWidget(parent); }
|
||||||
|
|
||||||
UiLoader::UiLoader()
|
UiLoader::UiLoader()
|
||||||
{
|
{
|
||||||
@ -106,6 +107,7 @@ UiLoader::UiLoader()
|
|||||||
m_widgetCtors.insert("TreeView", createTreeView);
|
m_widgetCtors.insert("TreeView", createTreeView);
|
||||||
m_widgetCtors.insert("VideoWidget", createVideoWidget);
|
m_widgetCtors.insert("VideoWidget", createVideoWidget);
|
||||||
m_widgetCtors.insert("WebView", createWebView);
|
m_widgetCtors.insert("WebView", createWebView);
|
||||||
|
m_widgetCtors.insert("GraphicsWidget", createWebView);
|
||||||
}
|
}
|
||||||
|
|
||||||
UiLoader::~UiLoader()
|
UiLoader::~UiLoader()
|
||||||
|
Loading…
Reference in New Issue
Block a user