From 096b63170a830e9a8e76cde9b8eca8953a5155c9 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Thu, 5 Apr 2007 12:39:22 +0000 Subject: [PATCH] Use case: 1) launch the dialog 2) select a delimiter in the left pane 3) Tab 4) select a delimiter in the right pane 5) Enter So: - Also enable the quick insertion while in the right pane - Do not limit the quick insertion to matched key git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17732 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/QDelimiterDialog.C | 8 ++++++-- src/frontends/qt4/QDelimiterDialog.h | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/frontends/qt4/QDelimiterDialog.C b/src/frontends/qt4/QDelimiterDialog.C index e9abd5def4..3c983f42ee 100644 --- a/src/frontends/qt4/QDelimiterDialog.C +++ b/src/frontends/qt4/QDelimiterDialog.C @@ -150,9 +150,13 @@ void QDelimiterDialog::insertClicked() void QDelimiterDialog::on_leftLW_itemActivated(QListWidgetItem *) { - if (!matchCB->isChecked()) - return; + insertClicked(); + accept(); +} + +void QDelimiterDialog::on_rightLW_itemActivated(QListWidgetItem *) +{ insertClicked(); accept(); } diff --git a/src/frontends/qt4/QDelimiterDialog.h b/src/frontends/qt4/QDelimiterDialog.h index 3a32e7dea0..515ff84a41 100644 --- a/src/frontends/qt4/QDelimiterDialog.h +++ b/src/frontends/qt4/QDelimiterDialog.h @@ -29,6 +29,7 @@ public: QDelimiterDialog(QMathDelimiter * form); public Q_SLOTS: void on_leftLW_itemActivated(QListWidgetItem *); + void on_rightLW_itemActivated(QListWidgetItem *); void on_leftLW_currentRowChanged(int); void on_rightLW_currentRowChanged(int); void on_matchCB_stateChanged(int);