object mode: fix UI issue with import from .txt window

This commit is contained in:
Skarn
2020-10-22 15:05:55 +03:00
parent 5dd4ef755b
commit 238c52595b

View File

@@ -12,7 +12,8 @@
#include <regex> #include <regex>
#include <string> #include <string>
#include <QtWidgets/QFormLayout> #include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QHBoxLayout>
namespace noggit namespace noggit
{ {
@@ -22,9 +23,14 @@ namespace noggit
: QWidget (object_editor, Qt::Tool | Qt::WindowStaysOnTopHint) : QWidget (object_editor, Qt::Tool | Qt::WindowStaysOnTopHint)
{ {
setWindowIcon (QIcon (":/icon")); setWindowIcon (QIcon (":/icon"));
auto layout (new QFormLayout (this)); auto layout (new QVBoxLayout (this));
auto layout_filter = new QHBoxLayout(this);
layout_filter->addWidget(new QLabel("Filter:", this));
layout_filter->addWidget (_textBox = new QLineEdit (this));
layout->addLayout(layout_filter);
layout->addRow ("Filter", _textBox = new QLineEdit (this));
connect ( _textBox, &QLineEdit::textChanged connect ( _textBox, &QLineEdit::textChanged
, [this] , [this]
{ {
@@ -32,7 +38,8 @@ namespace noggit
} }
); );
layout->addWidget (_list = new QListWidget (this)); _list = new QListWidget (this);
layout->addWidget (_list);
buildModelList(); buildModelList();