proper fix for bug 4936.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25215 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-06-09 15:20:38 +00:00
parent 16420e5263
commit 15676a062f
3 changed files with 2 additions and 32 deletions

View File

@ -933,7 +933,7 @@ GuiDocument::GuiDocument(GuiView & lv)
pdfSupportModule = new UiWidget<Ui::PDFSupportUi>; pdfSupportModule = new UiWidget<Ui::PDFSupportUi>;
connect(pdfSupportModule->use_hyperrefGB, SIGNAL(toggled(bool)), connect(pdfSupportModule->use_hyperrefGB, SIGNAL(toggled(bool)),
this, SLOT(useHyperrefClicked())); this, SLOT(change_adaptor()));
connect(pdfSupportModule->titleLE, SIGNAL(textChanged(const QString &)), connect(pdfSupportModule->titleLE, SIGNAL(textChanged(const QString &)),
this, SLOT(change_adaptor())); this, SLOT(change_adaptor()));
connect(pdfSupportModule->authorLE, SIGNAL(textChanged(const QString &)), 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() void GuiDocument::change_adaptor()
{ {
changed(); changed();

View File

@ -120,7 +120,6 @@ private Q_SLOTS:
void set_listings_msg(); void set_listings_msg();
void saveDefaultClicked(); void saveDefaultClicked();
void useDefaultsClicked(); void useDefaultsClicked();
void useHyperrefClicked();
void setLSpacing(int); void setLSpacing(int);
void setMargins(bool); void setMargins(bool);
void setCustomPapersize(int); void setCustomPapersize(int);

View File

@ -329,9 +329,6 @@
</property> </property>
<item> <item>
<widget class="QLabel" name="bookmarksopenlevelLA" > <widget class="QLabel" name="bookmarksopenlevelLA" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" > <property name="text" >
<string>&amp;Level:</string> <string>&amp;Level:</string>
</property> </property>
@ -447,22 +444,5 @@
</layout> </layout>
</widget> </widget>
<resources/> <resources/>
<connections> <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>
</ui> </ui>