From a6c58db0f62d3bed6b86b49808a3495f594ddec0 Mon Sep 17 00:00:00 2001 From: Edwin Leuven Date: Mon, 5 Feb 2007 19:41:58 +0000 Subject: [PATCH] * Add comment that clarifies toggled() vs clicked() git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17061 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/QGraphicsDialog.C | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt4/QGraphicsDialog.C b/src/frontends/qt4/QGraphicsDialog.C index 7d72aa1728..74f4571b26 100644 --- a/src/frontends/qt4/QGraphicsDialog.C +++ b/src/frontends/qt4/QGraphicsDialog.C @@ -53,14 +53,18 @@ QGraphicsDialog::QGraphicsDialog(QGraphics * form) this, SLOT( change_adaptor() ) ); connect(subcaption, SIGNAL( textChanged(const QString&) ), this, SLOT( change_adaptor() ) ); + + // FIXME: we should connect to clicked() when we move to Qt 4.2 because + // the toggled(bool) signal is also trigged when we update the widgets connect(subfigure, SIGNAL( toggled(bool) ), this, SLOT( change_adaptor() ) ); + connect(displayGB, SIGNAL( toggled(bool) ), + this, SLOT( change_adaptor() ) ); + connect(latexoptions, SIGNAL( textChanged(const QString&) ), this, SLOT( change_adaptor() ) ); connect(clip, SIGNAL( stateChanged(int) ), this, SLOT( change_adaptor() ) ); - connect(displayGB, SIGNAL( toggled(bool) ), - this, SLOT( change_adaptor() ) ); connect(showCB, SIGNAL( currentIndexChanged(int) ), this, SLOT( change_adaptor() ) ); connect(displayscale, SIGNAL( textChanged(const QString&) ), -- 2.39.5