Mercurial > octave-dspies
diff libgui/src/m-editor/find-dialog.h @ 15988:38348a6c3db0
gui: initialize search text in the find dialog with selected text in editor file
* find_dialog.h: new function init_search_text ()
* find_dialog.cc (init_search_text): new function, initializes the search text
of the file dialog with the slected text of the related editor tab
* file-editor-tab.cc (find): call init_search_text after activating the find
dialog
author | Torsten <ttl@justmail.de> |
---|---|
date | Thu, 31 Jan 2013 19:28:23 +0100 |
parents | 501a9cc2c68f |
children | d07aeecb2d22 |
line wrap: on
line diff
--- a/libgui/src/m-editor/find-dialog.h Tue Jan 29 18:24:16 2013 +0100 +++ b/libgui/src/m-editor/find-dialog.h Thu Jan 31 19:28:23 2013 +0100 @@ -57,6 +57,7 @@ Q_OBJECT public: find_dialog (QsciScintilla* edit_area, QWidget *parent = 0); + void init_search_text (); private slots: void search_next ();