* update dialog when changing lyx display settings.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15715 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Edwin Leuven 2006-11-03 16:34:06 +00:00
parent c52014f2ff
commit 555c1e1cde
2 changed files with 3 additions and 3 deletions

View File

@ -219,10 +219,8 @@ void QGraphics::update_contents()
case graphics::NoDisplay: item = 0; break;
}
dialog_->showCB->setCurrentIndex(item);
dialog_->showCB->setEnabled(igp.display != graphics::NoDisplay && !readOnly());
dialog_->displayGB->setChecked(igp.display != graphics::NoDisplay);
dialog_->displayscale->setEnabled(igp.display != graphics::NoDisplay && !readOnly());
dialog_->displayscale->setText(toqstr(convert<string>(igp.lyxscale)));
dialog_->displayGB->setChecked(igp.display != graphics::NoDisplay);
// the output section (width/height)
dialog_->Scale->setText(toqstr(igp.scale));

View File

@ -57,6 +57,8 @@ QGraphicsDialog::QGraphicsDialog(QGraphics * form)
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&) ),