From 15676a062fab4a9dfccf28ebdd50a52958810129 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Mon, 9 Jun 2008 15:20:38 +0000 Subject: [PATCH] proper fix for bug 4936. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25215 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiDocument.cpp | 11 +---------- src/frontends/qt4/GuiDocument.h | 1 - src/frontends/qt4/ui/PDFSupportUi.ui | 22 +--------------------- 3 files changed, 2 insertions(+), 32 deletions(-) diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index ab3b065cab..9cbaec7436 100644 --- a/src/frontends/qt4/GuiDocument.cpp +++ b/src/frontends/qt4/GuiDocument.cpp @@ -933,7 +933,7 @@ GuiDocument::GuiDocument(GuiView & lv) pdfSupportModule = new UiWidget; connect(pdfSupportModule->use_hyperrefGB, SIGNAL(toggled(bool)), - this, SLOT(useHyperrefClicked())); + this, SLOT(change_adaptor())); connect(pdfSupportModule->titleLE, SIGNAL(textChanged(const QString &)), this, SLOT(change_adaptor())); connect(pdfSupportModule->authorLE, SIGNAL(textChanged(const QString &)), @@ -1013,15 +1013,6 @@ void GuiDocument::useDefaultsClicked() } -void GuiDocument::useHyperrefClicked() -{ - // strange as it is, Qt seems to be unable to handle this by itself - pdfSupportModule->bookmarksopenlevelLA->setEnabled( - pdfSupportModule->bookmarksopenlevelSB->isEnabled()); - change_adaptor(); -} - - void GuiDocument::change_adaptor() { changed(); diff --git a/src/frontends/qt4/GuiDocument.h b/src/frontends/qt4/GuiDocument.h index a37abda824..5ce411e3a8 100644 --- a/src/frontends/qt4/GuiDocument.h +++ b/src/frontends/qt4/GuiDocument.h @@ -120,7 +120,6 @@ private Q_SLOTS: void set_listings_msg(); void saveDefaultClicked(); void useDefaultsClicked(); - void useHyperrefClicked(); void setLSpacing(int); void setMargins(bool); void setCustomPapersize(int); diff --git a/src/frontends/qt4/ui/PDFSupportUi.ui b/src/frontends/qt4/ui/PDFSupportUi.ui index 69231fa8e5..f8e75aa535 100644 --- a/src/frontends/qt4/ui/PDFSupportUi.ui +++ b/src/frontends/qt4/ui/PDFSupportUi.ui @@ -329,9 +329,6 @@ - - false - &Level: @@ -447,22 +444,5 @@ - - - bookmarksGB - clicked(bool) - bookmarksopenlevelLA - setEnabled(bool) - - - 209 - 131 - - - 71 - 168 - - - - +