forked from teamnwah/openmw-tes3coop
subclasses scene widget for worldspace scenes
This commit is contained in:
parent
26c2f28879
commit
a264e86e13
4 changed files with 27 additions and 3 deletions
|
@ -64,7 +64,7 @@ opencs_units (view/world
|
|||
)
|
||||
|
||||
opencs_units (view/render
|
||||
scenewidget
|
||||
scenewidget worldspacewidget
|
||||
)
|
||||
|
||||
opencs_units_noqt (view/render
|
||||
|
|
6
apps/opencs/view/render/worldspacewidget.cpp
Normal file
6
apps/opencs/view/render/worldspacewidget.cpp
Normal file
|
@ -0,0 +1,6 @@
|
|||
|
||||
#include "worldspacewidget.hpp"
|
||||
|
||||
CSVRender::WorldspaceWidget::WorldspaceWidget (QWidget *parent)
|
||||
: SceneWidget (parent)
|
||||
{}
|
18
apps/opencs/view/render/worldspacewidget.hpp
Normal file
18
apps/opencs/view/render/worldspacewidget.hpp
Normal file
|
@ -0,0 +1,18 @@
|
|||
#ifndef OPENCS_VIEW_WORLDSPACEWIDGET_H
|
||||
#define OPENCS_VIEW_WORLDSPACEWIDGET_H
|
||||
|
||||
#include "scenewidget.hpp"
|
||||
|
||||
namespace CSVRender
|
||||
{
|
||||
class WorldspaceWidget : public SceneWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
WorldspaceWidget (QWidget *parent = 0);
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
#include "../filter/filterbox.hpp"
|
||||
|
||||
#include "../render/scenewidget.hpp"
|
||||
#include "../render/worldspacewidget.hpp"
|
||||
|
||||
#include "tablebottombox.hpp"
|
||||
#include "creator.hpp"
|
||||
|
@ -44,7 +44,7 @@ CSVWorld::SceneSubView::SceneSubView (const CSMWorld::UniversalId& id, CSMDoc::D
|
|||
|
||||
layout2->addWidget (toolbar, 0);
|
||||
|
||||
mScene = new CSVRender::SceneWidget(this);
|
||||
mScene = new CSVRender::WorldspaceWidget (this);
|
||||
|
||||
layout2->addWidget (mScene, 1);
|
||||
|
||||
|
|
Loading…
Reference in a new issue