From 92fa10cc49fd9b20c329c6427398a802428fa138 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Sun, 7 Feb 2010 20:13:30 +0000 Subject: [PATCH] GuiInfo: simplify code. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33349 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiInfo.cpp | 13 ++----------- src/frontends/qt4/GuiInfo.h | 4 ---- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/src/frontends/qt4/GuiInfo.cpp b/src/frontends/qt4/GuiInfo.cpp index 89ebfd298b..fa756303c3 100644 --- a/src/frontends/qt4/GuiInfo.cpp +++ b/src/frontends/qt4/GuiInfo.cpp @@ -56,18 +56,9 @@ GuiInfo::GuiInfo(GuiView & lv) for (int n = 0; info_types[n][0]; ++n) typeCO->addItem(qt_(info_types_gui[n])); typeCO->blockSignals(false); -} - -void GuiInfo::on_typeCO_currentIndexChanged(int) -{ - applyView(); -} - - -void GuiInfo::on_nameLE_textChanged(QString const &) -{ - applyView(); + connect(typeCO, SIGNAL(currentIndexChanged(int)), this, SLOT(applyView())); + connect(nameLE, SIGNAL(textChanged(QString)), this, SLOT(applyView())); } diff --git a/src/frontends/qt4/GuiInfo.h b/src/frontends/qt4/GuiInfo.h index 001a9a81af..a25d61944d 100644 --- a/src/frontends/qt4/GuiInfo.h +++ b/src/frontends/qt4/GuiInfo.h @@ -33,10 +33,6 @@ public: void enableView(bool enable); //@} -private Q_SLOTS: - void on_typeCO_currentIndexChanged(int); - void on_nameLE_textChanged(QString const &); - private: /// \name InsetDialog inherited methods //@{ -- 2.39.2