mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-01 12:36:40 +00:00
ReferenceCreator accepts drops of Cell ID
This commit is contained in:
parent
e29d9bcc8e
commit
5b82b9d9d0
2 changed files with 9 additions and 5 deletions
|
@ -2,7 +2,6 @@
|
||||||
#include "referencecreator.hpp"
|
#include "referencecreator.hpp"
|
||||||
|
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QLineEdit>
|
|
||||||
|
|
||||||
#include "../../model/doc/document.hpp"
|
#include "../../model/doc/document.hpp"
|
||||||
|
|
||||||
|
@ -12,6 +11,8 @@
|
||||||
#include "../../model/world/idtable.hpp"
|
#include "../../model/world/idtable.hpp"
|
||||||
#include "../../model/world/idcompletionmanager.hpp"
|
#include "../../model/world/idcompletionmanager.hpp"
|
||||||
|
|
||||||
|
#include "../widget/droplineedit.hpp"
|
||||||
|
|
||||||
std::string CSVWorld::ReferenceCreator::getId() const
|
std::string CSVWorld::ReferenceCreator::getId() const
|
||||||
{
|
{
|
||||||
return mId;
|
return mId;
|
||||||
|
@ -80,7 +81,7 @@ CSVWorld::ReferenceCreator::ReferenceCreator (CSMWorld::Data& data, QUndoStack&
|
||||||
QLabel *label = new QLabel ("Cell", this);
|
QLabel *label = new QLabel ("Cell", this);
|
||||||
insertBeforeButtons (label, false);
|
insertBeforeButtons (label, false);
|
||||||
|
|
||||||
mCell = new QLineEdit (this);
|
mCell = new CSVWidget::DropLineEdit(CSMWorld::ColumnBase::Display_Cell, this);
|
||||||
mCell->setCompleter(completionManager.getCompleter(CSMWorld::ColumnBase::Display_Cell).get());
|
mCell->setCompleter(completionManager.getCompleter(CSMWorld::ColumnBase::Display_Cell).get());
|
||||||
insertBeforeButtons (mCell, true);
|
insertBeforeButtons (mCell, true);
|
||||||
|
|
||||||
|
|
|
@ -3,13 +3,16 @@
|
||||||
|
|
||||||
#include "genericcreator.hpp"
|
#include "genericcreator.hpp"
|
||||||
|
|
||||||
class QLineEdit;
|
|
||||||
|
|
||||||
namespace CSMWorld
|
namespace CSMWorld
|
||||||
{
|
{
|
||||||
class IdCompletionManager;
|
class IdCompletionManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespace CSVWidget
|
||||||
|
{
|
||||||
|
class DropLineEdit;
|
||||||
|
}
|
||||||
|
|
||||||
namespace CSVWorld
|
namespace CSVWorld
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -17,7 +20,7 @@ namespace CSVWorld
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
QLineEdit *mCell;
|
CSVWidget::DropLineEdit *mCell;
|
||||||
std::string mId;
|
std::string mId;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in a new issue