mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 15:35:23 +00:00
cleaned up DialogueSubView constructor; moved bottom box below button bar
This commit is contained in:
parent
49dc30683f
commit
7f1129df3b
@ -706,23 +706,27 @@ CSVWorld::DialogueSubView::DialogueSubView (const CSMWorld::UniversalId& id,
|
||||
: SimpleDialogueSubView (id, document)
|
||||
{
|
||||
// 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,
|
||||
&getCommandDispatcher(), this);
|
||||
|
||||
getMainLayout().addWidget (buttons);
|
||||
|
||||
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()));
|
||||
// layout
|
||||
getMainLayout().addWidget (buttons);
|
||||
getMainLayout().addWidget (mBottom);
|
||||
|
||||
// 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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user