1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00

cleaned up DialogueSubView constructor; moved bottom box below button bar

This commit is contained in:
Marc Zinnschlag 2015-06-27 12:53:46 +02:00
parent 49dc30683f
commit 7f1129df3b

View File

@ -706,23 +706,27 @@ CSVWorld::DialogueSubView::DialogueSubView (const CSMWorld::UniversalId& id,
: SimpleDialogueSubView (id, document) : SimpleDialogueSubView (id, document)
{ {
// bottom box // bottom box
getMainLayout().addWidget (mBottom = new TableBottomBox (creatorFactory, document, id, this)); mBottom = new TableBottomBox (creatorFactory, document, id, this);
mBottom->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Fixed); mBottom->setSizePolicy (QSizePolicy::Ignored, QSizePolicy::Fixed);
connect(mBottom, SIGNAL(requestFocus(const std::string&)), this, SLOT(requestFocus(const std::string&))); connect (mBottom, SIGNAL (requestFocus (const std::string&)),
this, SLOT (requestFocus (const std::string&)));
// buttons // button bar
RecordButtonBar *buttons = new RecordButtonBar (getTable(), mBottom, RecordButtonBar *buttons = new RecordButtonBar (getTable(), mBottom,
&getCommandDispatcher(), this); &getCommandDispatcher(), this);
getMainLayout().addWidget (buttons);
connect (buttons, SIGNAL(nextId()), this, SLOT(nextId())); // layout
connect (buttons, SIGNAL (prevId()), this, SLOT(prevId())); getMainLayout().addWidget (buttons);
connect (buttons, SIGNAL (cloneRequest()), this, SLOT(cloneRequest())); getMainLayout().addWidget (mBottom);
connect (buttons, SIGNAL (showPreview()), this, SLOT(showPreview()));
connect (buttons, SIGNAL (viewRecord()), this, SLOT(viewRecord())); // connections
connect (buttons, SIGNAL (nextId()), this, SLOT (nextId()));
connect (buttons, SIGNAL (prevId()), this, SLOT (prevId()));
connect (buttons, SIGNAL (cloneRequest()), this, SLOT (cloneRequest()));
connect (buttons, SIGNAL (showPreview()), this, SLOT (showPreview()));
connect (buttons, SIGNAL (viewRecord()), this, SLOT (viewRecord()));
} }
void CSVWorld::DialogueSubView::cloneRequest() void CSVWorld::DialogueSubView::cloneRequest()