1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-27 05:10:26 +00:00

Issue command passing through QLineInput

This commit is contained in:
unelsson 2023-01-14 21:30:25 +02:00
parent 0310b1cddf
commit 7fce4bc8c4
3 changed files with 10 additions and 7 deletions

View file

@ -144,6 +144,11 @@ void CSVWorld::InfoCreator::focus()
mTopic->setFocus(); mTopic->setFocus();
} }
void CSVWorld::InfoCreator::callReturnPressed()
{
emit inputReturnPressed();
}
void CSVWorld::InfoCreator::topicChanged() void CSVWorld::InfoCreator::topicChanged()
{ {
update(); update();

View file

@ -56,6 +56,10 @@ namespace CSVWorld
/// Focus main input widget /// Focus main input widget
void focus() override; void focus() override;
public slots:
void callReturnPressed();
private slots: private slots:
void topicChanged(); void topicChanged();

View file

@ -264,13 +264,7 @@ void CSVWorld::TableBottomBox::createRecordsDirectlyRequest(const std::string& i
{ {
creator->reset(); creator->reset();
creator->setText(id); creator->setText(id);
creator->callReturnPressed();
/*Default system of createRequest - TODO: Modify so that user doesn't see the edit box*/
mCreator->toggleWidgets(true);
mLayout->setCurrentWidget(mCreator);
setVisible(true);
mEditMode = EditMode_Creation;
mCreator->focus();
} }
else else
{ {