Mercurial > hg > octave-nkf
comparison libgui/src/files-dockwidget.h @ 15300:fd27e10b9b05
pass QString by const reference instead of value
* files-dockwidget.cc, files-dockwidget.h, history-dockwidget.h,
file-editor-interface.h, file-editor-tab.cc, file-editor-tab.h,
file-editor.cc, file-editor.h, main-window.cc, main-window.h,
octave-qt-event-listener.h, parser.cc, parser.h, webinfo.cc,
webinfo.h, resource-manager.cc, resource-manager.h: For all functions
that take QString arguments, use "const Qstring&" instead of passing
QString by value.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 05 Sep 2012 11:41:21 -0400 |
parents | 359098ad343e |
children | 501a9cc2c68f |
comparison
equal
deleted
inserted
replaced
15299:8bd5c490b787 | 15300:fd27e10b9b05 |
---|---|
55 | 55 |
56 /** Slot for handling the up-directory button in the toolbar. */ | 56 /** Slot for handling the up-directory button in the toolbar. */ |
57 void do_up_directory (); | 57 void do_up_directory (); |
58 | 58 |
59 /** Sets the current directory being displayed. */ | 59 /** Sets the current directory being displayed. */ |
60 void set_current_directory (QString currentDirectory); | 60 void set_current_directory (const QString& currentDirectory); |
61 | 61 |
62 /** Accepts user input a the line edit for the current directory. */ | 62 /** Accepts user input a the line edit for the current directory. */ |
63 void handle_directory_entered (); | 63 void handle_directory_entered (); |
64 | 64 |
65 void display_directory (QString directory); | 65 void display_directory (const QString& directory); |
66 | 66 |
67 /** Tells the widget to react on changed settings. */ | 67 /** Tells the widget to react on changed settings. */ |
68 void notice_settings (); | 68 void notice_settings (); |
69 | 69 |
70 /** Slot to steer changing visibility from outside. */ | 70 /** Slot to steer changing visibility from outside. */ |
71 void handle_visibility_changed (bool visible); | 71 void handle_visibility_changed (bool visible); |
72 | 72 |
73 signals: | 73 signals: |
74 /** Emitted, whenever the user requested to open a file. */ | 74 /** Emitted, whenever the user requested to open a file. */ |
75 void open_file (QString fileName); | 75 void open_file (const QString& fileName); |
76 | 76 |
77 /** Emitted, whenever the currently displayed directory changed. */ | 77 /** Emitted, whenever the currently displayed directory changed. */ |
78 void displayed_directory_changed (QString directory); | 78 void displayed_directory_changed (const QString& directory); |
79 | 79 |
80 /** Custom signal that tells if a user has clicke away that dock widget. */ | 80 /** Custom signal that tells if a user has clicke away that dock widget. */ |
81 void active_changed (bool active); | 81 void active_changed (bool active); |
82 | 82 |
83 protected: | 83 protected: |