mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-20 16:41:33 +00:00
succesfully connected the signals
This commit is contained in:
parent
1bf67e7390
commit
fd4829141d
2 changed files with 8 additions and 1 deletions
|
@ -113,6 +113,10 @@ QWidget* CSVWorld::DialogueDelegateDispatcherProxy::getEditor() const
|
||||||
return mEditor;
|
return mEditor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CSVWorld::DialogueDelegateDispatcherProxy::tableMimeDataDropped(const std::vector<CSMWorld::UniversalId>& data)
|
||||||
|
{
|
||||||
|
std::cout<<"Test!"<<std::endl;
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
==============================DialogueDelegateDispatcher==========================================
|
==============================DialogueDelegateDispatcher==========================================
|
||||||
*/
|
*/
|
||||||
|
@ -217,9 +221,10 @@ QWidget* CSVWorld::DialogueDelegateDispatcher::makeEditor(CSMWorld::ColumnBase::
|
||||||
DialogueDelegateDispatcherProxy* proxy = new DialogueDelegateDispatcherProxy(editor, display);
|
DialogueDelegateDispatcherProxy* proxy = new DialogueDelegateDispatcherProxy(editor, display);
|
||||||
|
|
||||||
bool skip = false;
|
bool skip = false;
|
||||||
if (qobject_cast<QLineEdit*>(editor))
|
if (qobject_cast<DropLineEdit*>(editor))
|
||||||
{
|
{
|
||||||
connect(editor, SIGNAL(editingFinished()), proxy, SLOT(editorDataCommited()));
|
connect(editor, SIGNAL(editingFinished()), proxy, SLOT(editorDataCommited()));
|
||||||
|
connect(editor, SIGNAL(tableMimeDataDropped(const std::vector<CSMWorld::UniversalId>&)), proxy, SLOT(tableMimeDataDropped(const std::vector<CSMWorld::UniversalId>&)));
|
||||||
skip = true;
|
skip = true;
|
||||||
}
|
}
|
||||||
if(!skip && qobject_cast<QCheckBox*>(editor))
|
if(!skip && qobject_cast<QCheckBox*>(editor))
|
||||||
|
|
|
@ -69,6 +69,7 @@ namespace CSVWorld
|
||||||
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);
|
||||||
QWidget* getEditor() const;
|
QWidget* getEditor() const;
|
||||||
|
@ -76,6 +77,7 @@ namespace CSVWorld
|
||||||
public slots:
|
public slots:
|
||||||
void editorDataCommited();
|
void editorDataCommited();
|
||||||
void setIndex(const QModelIndex& index);
|
void setIndex(const QModelIndex& index);
|
||||||
|
void tableMimeDataDropped(const std::vector<CSMWorld::UniversalId>& data);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void editorDataCommited(QWidget* editor, const QModelIndex& index, CSMWorld::ColumnBase::Display display);
|
void editorDataCommited(QWidget* editor, const QModelIndex& index, CSMWorld::ColumnBase::Display display);
|
||||||
|
|
Loading…
Reference in a new issue