at_ref_ = false;
- //FIXME: when/if we support the xr package for cross-reference
- //between independant files. Those can be re-enabled.
- refsL->setEnabled(false);
- refsL->hide();
- bufferCO->setEnabled(false);
- bufferCO->hide();
-
// Enabling is set in updateRefs. Disable for now in case no
// call to updateContents follows (e.g. read-only documents).
sortCB->setEnabled(false);
connect(okPB, SIGNAL(clicked()), this, SLOT(slotOK()));
connect(applyPB, SIGNAL(clicked()), this, SLOT(slotApply()));
connect(closePB, SIGNAL(clicked()), this, SLOT(slotClose()));
- connect(closePB, SIGNAL(clicked()), this, SLOT(reset_dialog()));
- connect(this, SIGNAL(rejected()), this, SLOT(dialog_rejected()));
+ connect(closePB, SIGNAL(clicked()), this, SLOT(resetDialog()));
+ connect(this, SIGNAL(rejected()), this, SLOT(dialogRejected()));
connect(typeCO, SIGNAL(activated(int)),
this, SLOT(changed_adaptor()));
this, SLOT(refHighlighted(QListWidgetItem *)));
connect(refsLW, SIGNAL(itemSelectionChanged()),
this, SLOT(selectionChanged()));
- connect(refsLW, SIGNAL(itemActivated(QListWidgetItem *)),
+ connect(refsLW, SIGNAL(itemDoubleClicked(QListWidgetItem *)),
this, SLOT(refSelected(QListWidgetItem *)));
connect(sortCB, SIGNAL(clicked()),
this, SLOT(sortToggled()));
}
-void GuiRef::dialog_rejected()
+void GuiRef::dialogRejected()
{
- reset_dialog();
+ resetDialog();
// We have to do this manually, instead of calling slotClose(), because
// the dialog has already been made invisible before rejected() triggers.
Dialog::disconnect();
}
-void GuiRef::reset_dialog()
+void GuiRef::resetDialog()
{
at_ref_ = false;
setGotoRef();
void GuiRef::closeEvent(QCloseEvent * e)
{
slotClose();
- reset_dialog();
+ resetDialog();
e->accept();
}