this, SLOT(change_adaptor()));
connect(pdfSupportModule->pdfborderCB, SIGNAL(toggled(bool)),
this, SLOT(change_adaptor()));
+ connect(pdfSupportModule->colorlinksCB, SIGNAL(toggled(bool)),
+ this, SLOT(colorlinksCB_adaptor(bool)));
connect(pdfSupportModule->colorlinksCB, SIGNAL(toggled(bool)),
this, SLOT(change_adaptor()));
connect(pdfSupportModule->backrefCO, SIGNAL(activated(int)),
}
+void GuiDocument::colorlinksCB_adaptor(bool enabled)
+{
+ pdfSupportModule->pdfborderCB->setEnabled(!enabled);
+}
+
+
void GuiDocument::classChanged()
{
int idx = latexModule->classCO->currentIndex();
pdfSupportModule->pdfusetitleCB->setChecked(pdf.pdfusetitle);
pdfSupportModule->colorlinksCB->setChecked(pdf.colorlinks);
+ //hyperref considers colorlinks to be mutually exlusive to borders
+ //for workaround see manuals
+ pdfSupportModule->pdfborderCB->setEnabled(!pdf.colorlinks);
+
nn = findToken(backref_opts, pdf.backref);
if (nn >= 0)
pdfSupportModule->backrefCO->setCurrentIndex(nn);
</item>
<item>
<widget class="QCheckBox" name="colorlinksCB">
+ <property name="toolTip">
+ <string>Mutually exclusive with frames around links, see manual.</string>
+ </property>
<property name="text">
<string>C&olor links</string>
</property>