|
|
|
@ -4,7 +4,6 @@
|
|
|
|
|
#include <algorithm>
|
|
|
|
|
|
|
|
|
|
#include <QLabel>
|
|
|
|
|
#include <QLineEdit>
|
|
|
|
|
#include <QUuid>
|
|
|
|
|
|
|
|
|
|
#include <components/misc/stringops.hpp>
|
|
|
|
@ -17,6 +16,8 @@
|
|
|
|
|
#include "../../model/world/idtable.hpp"
|
|
|
|
|
#include "../../model/world/idcompletionmanager.hpp"
|
|
|
|
|
|
|
|
|
|
#include "../widget/droplineedit.hpp"
|
|
|
|
|
|
|
|
|
|
std::string CSVWorld::InfoCreator::getId() const
|
|
|
|
|
{
|
|
|
|
|
std::string id = Misc::StringUtils::lowerCase (mTopic->text().toUtf8().constData());
|
|
|
|
@ -48,12 +49,12 @@ CSVWorld::InfoCreator::InfoCreator (CSMWorld::Data& data, QUndoStack& undoStack,
|
|
|
|
|
QLabel *label = new QLabel ("Topic", this);
|
|
|
|
|
insertBeforeButtons (label, false);
|
|
|
|
|
|
|
|
|
|
mTopic = new QLineEdit (this);
|
|
|
|
|
CSMWorld::ColumnBase::Display displayType = CSMWorld::ColumnBase::Display_Topic;
|
|
|
|
|
if (getCollectionId().getType() == CSMWorld::UniversalId::Type_JournalInfos)
|
|
|
|
|
{
|
|
|
|
|
displayType = CSMWorld::ColumnBase::Display_Journal;
|
|
|
|
|
}
|
|
|
|
|
mTopic = new CSVWidget::DropLineEdit(displayType, this);
|
|
|
|
|
mTopic->setCompleter(completionManager.getCompleter(displayType).get());
|
|
|
|
|
insertBeforeButtons (mTopic, true);
|
|
|
|
|
|
|
|
|
|