comparison libgui/src/dialog.h @ 20540:dd327c0909b0

listdlg: Make appearance and behavior more Matlab compatible (bug #46026) * dialog.h, dialog.cc (ListDialog::ListDialog): Hide "Select All" button when in single-selection mode. Set "Ok" button as the default button, allows Enter/Return to accept the selection. Handle double-click on list item with the item_double_clicked slot. (ListDialog::item_double_clicked): New slot.
author Mike Miller <mtmiller@octave.org>
date Tue, 22 Sep 2015 21:06:01 +0200
parents 89d843d6de14
children
comparison
equal deleted inserted replaced
20539:b6ae0ef9327e 20540:dd327c0909b0
208 void buttonOk_clicked (void); 208 void buttonOk_clicked (void);
209 209
210 void buttonCancel_clicked (void); 210 void buttonCancel_clicked (void);
211 211
212 void reject (void); 212 void reject (void);
213
214 void item_double_clicked (const QModelIndex&);
213 }; 215 };
214 216
215 217
216 class InputDialog : public QDialog 218 class InputDialog : public QDialog
217 { 219 {