1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-03 08:45:32 +00:00

nest wrapper into the proxy class

This commit is contained in:
Marek Kochanowicz 2014-03-08 15:10:55 +01:00
parent 2e6b45dafb
commit 3c60345d6b
2 changed files with 10 additions and 10 deletions

View file

@ -23,7 +23,7 @@
/* /*
==============================DialogueDelegateDispatcherProxy========================================== ==============================DialogueDelegateDispatcherProxy==========================================
*/ */
CSVWorld::refWrapper::refWrapper(const QModelIndex& index) : CSVWorld::DialogueDelegateDispatcherProxy::refWrapper::refWrapper(const QModelIndex& index) :
mIndex(index) mIndex(index)
{} {}

View file

@ -27,23 +27,23 @@ namespace CSVWorld
{ {
class CommandDelegate; class CommandDelegate;
class refWrapper
{
public:
refWrapper(const QModelIndex& index);
const QModelIndex& mIndex;
};
//this can't be nested into the DialogueDelegateDispatcher, because it needs to emit signals
class DialogueDelegateDispatcherProxy : public QObject class DialogueDelegateDispatcherProxy : public QObject
{ {
Q_OBJECT Q_OBJECT
class refWrapper
{
public:
refWrapper(const QModelIndex& index);
const QModelIndex& mIndex;
};
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);