From 2ec54cfde7ebe6fb4bdaad0efe0e57b4d86b85a9 Mon Sep 17 00:00:00 2001 From: Edwin Leuven Date: Sun, 9 Sep 2007 15:56:58 +0000 Subject: [PATCH] more frontend cleanup git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20172 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiExternal.cpp | 6 ------ src/frontends/qt4/GuiExternal.h | 1 - src/frontends/qt4/GuiGraphics.cpp | 6 ------ src/frontends/qt4/GuiGraphics.h | 1 - src/frontends/qt4/GuiInclude.cpp | 6 ------ src/frontends/qt4/GuiInclude.h | 2 -- src/frontends/qt4/GuiNomencl.cpp | 6 ------ src/frontends/qt4/GuiNomencl.h | 2 -- src/frontends/qt4/GuiRef.cpp | 6 ------ src/frontends/qt4/GuiRef.h | 2 -- src/frontends/qt4/GuiSearch.cpp | 2 +- 11 files changed, 1 insertion(+), 39 deletions(-) diff --git a/src/frontends/qt4/GuiExternal.cpp b/src/frontends/qt4/GuiExternal.cpp index 5dbc5d659c..2f36bd5a0e 100644 --- a/src/frontends/qt4/GuiExternal.cpp +++ b/src/frontends/qt4/GuiExternal.cpp @@ -190,12 +190,6 @@ ControlExternal & GuiExternalDialog::controller() const } -void GuiExternalDialog::showView() -{ - QDialog::show(); -} - - bool GuiExternalDialog::activateAspectratio() const { if (widthUnitCO->currentIndex() == 0) diff --git a/src/frontends/qt4/GuiExternal.h b/src/frontends/qt4/GuiExternal.h index 13ad241f8c..4864b45096 100644 --- a/src/frontends/qt4/GuiExternal.h +++ b/src/frontends/qt4/GuiExternal.h @@ -42,7 +42,6 @@ private Q_SLOTS: private: public: - void showView(); void closeEvent(QCloseEvent * e); // bool activateAspectratio() const; diff --git a/src/frontends/qt4/GuiGraphics.cpp b/src/frontends/qt4/GuiGraphics.cpp index 684dbbdf15..56f0121e8c 100644 --- a/src/frontends/qt4/GuiGraphics.cpp +++ b/src/frontends/qt4/GuiGraphics.cpp @@ -217,12 +217,6 @@ ControlGraphics & GuiGraphicsDialog::controller() const } -void GuiGraphicsDialog::showView() -{ - QDialog::show(); -} - - void GuiGraphicsDialog::change_adaptor() { changed(); diff --git a/src/frontends/qt4/GuiGraphics.h b/src/frontends/qt4/GuiGraphics.h index 100b31c316..e70e23c134 100644 --- a/src/frontends/qt4/GuiGraphics.h +++ b/src/frontends/qt4/GuiGraphics.h @@ -30,7 +30,6 @@ class GuiGraphicsDialog : public GuiDialog, public Ui::GraphicsUi public: GuiGraphicsDialog(LyXView & lv); void setAutoText(); - void showView(); private Q_SLOTS: void change_adaptor(); void change_bb(); diff --git a/src/frontends/qt4/GuiInclude.cpp b/src/frontends/qt4/GuiInclude.cpp index 991c04e764..1ddcaad13e 100644 --- a/src/frontends/qt4/GuiInclude.cpp +++ b/src/frontends/qt4/GuiInclude.cpp @@ -84,12 +84,6 @@ ControlInclude & GuiIncludeDialog::controller() const } -void GuiIncludeDialog::showView() -{ - QDialog::show(); -} - - void GuiIncludeDialog::change_adaptor() { changed(); diff --git a/src/frontends/qt4/GuiInclude.h b/src/frontends/qt4/GuiInclude.h index a69c299236..035da82d10 100644 --- a/src/frontends/qt4/GuiInclude.h +++ b/src/frontends/qt4/GuiInclude.h @@ -43,8 +43,6 @@ private: ControlInclude & controller() const; /// void updateLists(); - /// - void showView(); /// validate listings parameters and return an error message, if any docstring validate_listings_params(); diff --git a/src/frontends/qt4/GuiNomencl.cpp b/src/frontends/qt4/GuiNomencl.cpp index c244354e8c..d002473253 100644 --- a/src/frontends/qt4/GuiNomencl.cpp +++ b/src/frontends/qt4/GuiNomencl.cpp @@ -59,12 +59,6 @@ ControlCommand & GuiNomenclDialog::controller() const } -void GuiNomenclDialog::showView() -{ - QDialog::show(); -} - - void GuiNomenclDialog::change_adaptor() { changed(); diff --git a/src/frontends/qt4/GuiNomencl.h b/src/frontends/qt4/GuiNomencl.h index 4a4dfcb2bc..5c0405553e 100644 --- a/src/frontends/qt4/GuiNomencl.h +++ b/src/frontends/qt4/GuiNomencl.h @@ -33,8 +33,6 @@ private Q_SLOTS: void reject(); private: - /// - void showView(); /// void closeEvent(QCloseEvent * e); /// parent controller diff --git a/src/frontends/qt4/GuiRef.cpp b/src/frontends/qt4/GuiRef.cpp index 53db6e2df6..91979cb0c0 100644 --- a/src/frontends/qt4/GuiRef.cpp +++ b/src/frontends/qt4/GuiRef.cpp @@ -94,12 +94,6 @@ ControlRef & GuiRefDialog::controller() const } -void GuiRefDialog::showView() -{ - QDialog::show(); -} - - void GuiRefDialog::changed_adaptor() { changed(); diff --git a/src/frontends/qt4/GuiRef.h b/src/frontends/qt4/GuiRef.h index f918cfe711..50947fc16b 100644 --- a/src/frontends/qt4/GuiRef.h +++ b/src/frontends/qt4/GuiRef.h @@ -41,8 +41,6 @@ private Q_SLOTS: void reset_dialog(); private: - /// - void showView(); /// void closeEvent(QCloseEvent * e); /// parent controller diff --git a/src/frontends/qt4/GuiSearch.cpp b/src/frontends/qt4/GuiSearch.cpp index efde8aaa79..89c6918aa0 100644 --- a/src/frontends/qt4/GuiSearch.cpp +++ b/src/frontends/qt4/GuiSearch.cpp @@ -71,8 +71,8 @@ ControlSearch & GuiSearchDialog::controller() const void GuiSearchDialog::showView() { - QDialog::show(); findCO->lineEdit()->setSelection(0, findCO->lineEdit()->text().length()); + GuiDialog::showView(); }