mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-20 15:40:32 +00:00
nest wrapper into the proxy class
This commit is contained in:
parent
2e6b45dafb
commit
3c60345d6b
@ -23,7 +23,7 @@
|
|||||||
/*
|
/*
|
||||||
==============================DialogueDelegateDispatcherProxy==========================================
|
==============================DialogueDelegateDispatcherProxy==========================================
|
||||||
*/
|
*/
|
||||||
CSVWorld::refWrapper::refWrapper(const QModelIndex& index) :
|
CSVWorld::DialogueDelegateDispatcherProxy::refWrapper::refWrapper(const QModelIndex& index) :
|
||||||
mIndex(index)
|
mIndex(index)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
@ -27,6 +27,11 @@ namespace CSVWorld
|
|||||||
{
|
{
|
||||||
class CommandDelegate;
|
class CommandDelegate;
|
||||||
|
|
||||||
|
|
||||||
|
//this can't be nested into the DialogueDelegateDispatcher, because it needs to emit signals
|
||||||
|
class DialogueDelegateDispatcherProxy : public QObject
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
class refWrapper
|
class refWrapper
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -35,15 +40,10 @@ namespace CSVWorld
|
|||||||
const QModelIndex& mIndex;
|
const QModelIndex& mIndex;
|
||||||
};
|
};
|
||||||
|
|
||||||
class DialogueDelegateDispatcherProxy : public QObject
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
QWidget* mEditor;
|
QWidget* mEditor;
|
||||||
|
|
||||||
CSMWorld::ColumnBase::Display mDisplay;
|
CSMWorld::ColumnBase::Display mDisplay;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
std::auto_ptr<refWrapper> mIndexWrapper;
|
std::auto_ptr<refWrapper> mIndexWrapper;
|
||||||
public:
|
public:
|
||||||
DialogueDelegateDispatcherProxy(QWidget* editor, CSMWorld::ColumnBase::Display display);
|
DialogueDelegateDispatcherProxy(QWidget* editor, CSMWorld::ColumnBase::Display display);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user