1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-21 11:53:51 +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,18 +706,22 @@ 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);
// layout
getMainLayout().addWidget (buttons); getMainLayout().addWidget (buttons);
getMainLayout().addWidget (mBottom);
// connections
connect (buttons, SIGNAL (nextId()), this, SLOT (nextId())); connect (buttons, SIGNAL (nextId()), this, SLOT (nextId()));
connect (buttons, SIGNAL (prevId()), this, SLOT (prevId())); connect (buttons, SIGNAL (prevId()), this, SLOT (prevId()));
connect (buttons, SIGNAL (cloneRequest()), this, SLOT (cloneRequest())); connect (buttons, SIGNAL (cloneRequest()), this, SLOT (cloneRequest()));