]> git.lyx.org Git - features.git/commitdiff
When I created the Branches dialog class, I forgot to connect it to the Document...
authorAbdelrazak Younes <younes@lyx.org>
Mon, 20 Mar 2006 14:40:27 +0000 (14:40 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 20 Mar 2006 14:40:27 +0000 (14:40 +0000)
* 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

src/frontends/qt4/QBranches.C
src/frontends/qt4/QBranches.h
src/frontends/qt4/QDocumentDialog.C

index 43a132b6da5259dfbd72e0cab9f23f1b4955220c..fda24cf64ff74d1859219772f49064f8b9d3842b 100644 (file)
@@ -80,7 +80,8 @@ void QBranches::update()
                // restore selected branch
                if (bname == sel_branch)
                        branchesLV->setSelected(newItem, true);
-       }
+       }\r
+       emit changed();
 }
 
 void QBranches::apply(BufferParams & params) const
index c6f3d27c6ce4b15671477e112a5f3e0f0c9f996d..a9a3128d2bac4944479ff501f612a1303b3ea864 100644 (file)
@@ -39,6 +39,9 @@ public:
        
        void update(BufferParams const & params);
        void apply(BufferParams & params) const;
+\r
+signals:\r
+       void changed();\r
 
 protected:
        void toggleBranch(Q3ListViewItem * selItem);
index 93ee2bf08b558e811968459f4ff98272fbefba18..afe1fc622d1d380251fb576ebbd2b0a27cd95c38 100644 (file)
@@ -354,6 +354,7 @@ QDocumentDialog::QDocumentDialog(QDocument * form)
 
        
        branchesModule = new QBranches;
+       connect(branchesModule, SIGNAL(changed()), this, SLOT(change_adaptor()));\r
        
 
        preambleModule = new UiWidget<Ui::PreambleUi>;