When I created the Branches dialog class, I forgot to connect it to the Document settings panel dialog.

* QDocumentDialog.C: added connection to QBranches::changed signal.
* QBranches.h: added changed signal
* QBranches::update() added changed signal emission. 

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13430 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2006-03-20 14:40:27 +00:00
parent 967d3e3cd6
commit 812b5ebfa9
3 changed files with 6 additions and 1 deletions

View File

@ -80,7 +80,8 @@ void QBranches::update()
// restore selected branch
if (bname == sel_branch)
branchesLV->setSelected(newItem, true);
}
}
emit changed();
}
void QBranches::apply(BufferParams & params) const

View File

@ -39,6 +39,9 @@ public:
void update(BufferParams const & params);
void apply(BufferParams & params) const;
signals:
void changed();
protected:
void toggleBranch(Q3ListViewItem * selItem);

View File

@ -354,6 +354,7 @@ QDocumentDialog::QDocumentDialog(QDocument * form)
branchesModule = new QBranches;
connect(branchesModule, SIGNAL(changed()), this, SLOT(change_adaptor()));
preambleModule = new UiWidget<Ui::PreambleUi>;