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
This commit is contained in:
Abdelrazak Younes 2007-04-05 12:39:22 +00:00
parent 4f135f2dd6
commit 096b63170a
2 changed files with 7 additions and 2 deletions

View File

@ -150,9 +150,13 @@ void QDelimiterDialog::insertClicked()
void QDelimiterDialog::on_leftLW_itemActivated(QListWidgetItem *) void QDelimiterDialog::on_leftLW_itemActivated(QListWidgetItem *)
{ {
if (!matchCB->isChecked()) insertClicked();
return; accept();
}
void QDelimiterDialog::on_rightLW_itemActivated(QListWidgetItem *)
{
insertClicked(); insertClicked();
accept(); accept();
} }

View File

@ -29,6 +29,7 @@ public:
QDelimiterDialog(QMathDelimiter * form); QDelimiterDialog(QMathDelimiter * form);
public Q_SLOTS: public Q_SLOTS:
void on_leftLW_itemActivated(QListWidgetItem *); void on_leftLW_itemActivated(QListWidgetItem *);
void on_rightLW_itemActivated(QListWidgetItem *);
void on_leftLW_currentRowChanged(int); void on_leftLW_currentRowChanged(int);
void on_rightLW_currentRowChanged(int); void on_rightLW_currentRowChanged(int);
void on_matchCB_stateChanged(int); void on_matchCB_stateChanged(int);