X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiRef.cpp;h=d98a507b371d61ece7744b14900f688276016624;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=c63cc80dbf34db47319b09ef7396f3630281e7c3;hpb=303177ad817c6c640f582d1027c7d3354093b046;p=lyx.git diff --git a/src/frontends/qt4/GuiRef.cpp b/src/frontends/qt4/GuiRef.cpp index c63cc80dbf..d98a507b37 100644 --- a/src/frontends/qt4/GuiRef.cpp +++ b/src/frontends/qt4/GuiRef.cpp @@ -47,13 +47,6 @@ GuiRef::GuiRef(GuiView & lv) 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); @@ -65,8 +58,8 @@ GuiRef::GuiRef(GuiView & lv) 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())); @@ -78,7 +71,7 @@ GuiRef::GuiRef(GuiView & lv) 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())); @@ -193,16 +186,16 @@ void GuiRef::updateClicked() } -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(); @@ -212,7 +205,7 @@ void GuiRef::reset_dialog() void GuiRef::closeEvent(QCloseEvent * e) { slotClose(); - reset_dialog(); + resetDialog(); e->accept(); }