From: Abdelrazak Younes Date: Mon, 20 Mar 2006 14:40:27 +0000 (+0000) Subject: When I created the Branches dialog class, I forgot to connect it to the Document... X-Git-Tag: 1.6.10~13475 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=812b5ebfa9f4b21aaa1a2f0e3430e004663785e5;p=lyx.git 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 --- diff --git a/src/frontends/qt4/QBranches.C b/src/frontends/qt4/QBranches.C index 43a132b6da..fda24cf64f 100644 --- a/src/frontends/qt4/QBranches.C +++ b/src/frontends/qt4/QBranches.C @@ -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 diff --git a/src/frontends/qt4/QBranches.h b/src/frontends/qt4/QBranches.h index c6f3d27c6c..a9a3128d2b 100644 --- a/src/frontends/qt4/QBranches.h +++ b/src/frontends/qt4/QBranches.h @@ -39,6 +39,9 @@ public: void update(BufferParams const & params); void apply(BufferParams & params) const; + +signals: + void changed(); protected: void toggleBranch(Q3ListViewItem * selItem); diff --git a/src/frontends/qt4/QDocumentDialog.C b/src/frontends/qt4/QDocumentDialog.C index 93ee2bf08b..afe1fc622d 100644 --- a/src/frontends/qt4/QDocumentDialog.C +++ b/src/frontends/qt4/QDocumentDialog.C @@ -354,6 +354,7 @@ QDocumentDialog::QDocumentDialog(QDocument * form) branchesModule = new QBranches; + connect(branchesModule, SIGNAL(changed()), this, SLOT(change_adaptor())); preambleModule = new UiWidget;