]> git.lyx.org Git - features.git/commitdiff
proper fix for bug 4936.
authorJürgen Spitzmüller <spitz@lyx.org>
Mon, 9 Jun 2008 15:20:38 +0000 (15:20 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Mon, 9 Jun 2008 15:20:38 +0000 (15:20 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25215 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiDocument.cpp
src/frontends/qt4/GuiDocument.h
src/frontends/qt4/ui/PDFSupportUi.ui

index ab3b065cab5cb5a8d5283095f9c5016850283676..9cbaec7436d01f5c9b03d1a537968002d92992ac 100644 (file)
@@ -933,7 +933,7 @@ GuiDocument::GuiDocument(GuiView & lv)
        pdfSupportModule = new UiWidget<Ui::PDFSupportUi>;
 
        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();
index a37abda82410597ea877423eb18fd55e0121d6aa..5ce411e3a8dffa3b5d7f01c975776b10c947be58 100644 (file)
@@ -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);
index 69231fa8e5d0a5cc5c605837e7f5644351e98d23..f8e75aa53566a3a874b788b512bda32a520830fb 100644 (file)
                </property>
                <item>
                 <widget class="QLabel" name="bookmarksopenlevelLA" >
-                 <property name="enabled" >
-                  <bool>false</bool>
-                 </property>
                  <property name="text" >
                   <string>&amp;Level:</string>
                  </property>
   </layout>
  </widget>
  <resources/>
- <connections>
-  <connection>
-   <sender>bookmarksGB</sender>
-   <signal>clicked(bool)</signal>
-   <receiver>bookmarksopenlevelLA</receiver>
-   <slot>setEnabled(bool)</slot>
-   <hints>
-    <hint type="sourcelabel" >
-     <x>209</x>
-     <y>131</y>
-    </hint>
-    <hint type="destinationlabel" >
-     <x>71</x>
-     <y>168</y>
-    </hint>
-   </hints>
-  </connection>
- </connections>
+ <connections/>
 </ui>