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

@ -81,6 +81,7 @@ void QBranches::update()
if (bname == sel_branch) if (bname == sel_branch)
branchesLV->setSelected(newItem, true); branchesLV->setSelected(newItem, true);
} }
emit changed();
} }
void QBranches::apply(BufferParams & params) const void QBranches::apply(BufferParams & params) const

View File

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

View File

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