Embedding: simplify code in the handling of embedCB in GuiGraphics

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22427 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2008-01-08 02:34:17 +00:00
parent 40cb894ca6
commit 474979d32d
2 changed files with 2 additions and 7 deletions

View File

@ -127,6 +127,8 @@ GuiGraphics::GuiGraphics(GuiView & lv)
//graphics pane
connect(filename, SIGNAL(textChanged(const QString &)),
this, SLOT(change_adaptor()));
connect(embedCB, SIGNAL(toggled(bool)),
this, SLOT(change_adaptor()));
connect(WidthCB, SIGNAL( clicked()),
this, SLOT(change_adaptor()));
connect(HeightCB, SIGNAL( clicked()),
@ -303,12 +305,6 @@ void GuiGraphics::on_filename_textChanged(const QString & filename)
}
void GuiGraphics::on_embedCB_toggled(bool)
{
changed();
}
void GuiGraphics::setAutoText()
{
if (scaleCB->isChecked())

View File

@ -47,7 +47,6 @@ private Q_SLOTS:
void on_getPB_clicked();
void on_editPB_clicked();
void on_filename_textChanged(const QString &);
void on_embedCB_toggled(bool);
void on_scaleCB_toggled(bool);
void on_WidthCB_toggled(bool);
void on_HeightCB_toggled(bool);