From 3b00c86b9df490105f67db76a2e89e975ce678d5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Mon, 9 Jun 2008 10:41:58 +0000 Subject: [PATCH] brute fix weird bug 4936. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25203 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiDocument.cpp | 11 +- src/frontends/qt4/GuiDocument.h | 1 + src/frontends/qt4/ui/PDFSupportUi.ui | 192 +++++++++++++++------------ 3 files changed, 121 insertions(+), 83 deletions(-) diff --git a/src/frontends/qt4/GuiDocument.cpp b/src/frontends/qt4/GuiDocument.cpp index 9cbaec7436..ab3b065cab 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(change_adaptor())); + this, SLOT(useHyperrefClicked())); connect(pdfSupportModule->titleLE, SIGNAL(textChanged(const QString &)), this, SLOT(change_adaptor())); connect(pdfSupportModule->authorLE, SIGNAL(textChanged(const QString &)), @@ -1013,6 +1013,15 @@ 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 5ce411e3a8..a37abda824 100644 --- a/src/frontends/qt4/GuiDocument.h +++ b/src/frontends/qt4/GuiDocument.h @@ -120,6 +120,7 @@ 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 baa9e1d667..69231fa8e5 100644 --- a/src/frontends/qt4/ui/PDFSupportUi.ui +++ b/src/frontends/qt4/ui/PDFSupportUi.ui @@ -19,19 +19,6 @@ 6 - - - - Qt::Vertical - - - - 20 - 31 - - - - @@ -51,50 +38,11 @@ - 0 + 9 6 - - - - Additional o&ptions - - - false - - - false - - - false - - - - 9 - - - 6 - - - - - - 7 - 0 - 0 - 0 - - - - e.g.: pdfstartview=XYZ, plainpages=false, pdfpagelabels - - - - - - @@ -364,14 +312,51 @@ 6 - + + + + &Numbered bookmarks + + + + + + + 0 + + + 6 + + + + + false + + + &Level: + + + bookmarksopenlevelSB + + + + + + + Number of levels + + + + + + &Open bookmarks - + Qt::Horizontal @@ -384,33 +369,6 @@ - - - - Number of levels - - - - - - - false - - - &Level: - - - bookmarksopenlevelSB - - - - - - - &Numbered bookmarks - - - @@ -431,10 +389,80 @@ + + + + Additional o&ptions + + + false + + + false + + + false + + + + 9 + + + 6 + + + + + + 7 + 0 + 0 + 0 + + + + e.g.: pdfstartview=XYZ, plainpages=false, pdfpagelabels + + + + + + + + + + Qt::Vertical + + + + 402 + 16 + + + + + + + bookmarksGB + clicked(bool) + bookmarksopenlevelLA + setEnabled(bool) + + + 209 + 131 + + + 71 + 168 + + + + -- 2.39.5