Mercurial > octave-nkf
comparison libgui/graphics/ToolBarButton.cc @ 18501:523878f76518 gui-release
style fix: eliminate lines of slashes to separate functions.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Feb 2014 15:10:07 -0500 |
parents | 49877d3be064 |
children | fb96b7f55242 |
comparison
equal
deleted
inserted
replaced
18500:49877d3be064 | 18501:523878f76518 |
---|---|
28 #include <QWidget> | 28 #include <QWidget> |
29 | 29 |
30 #include "ToolBarButton.h" | 30 #include "ToolBarButton.h" |
31 #include "Utils.h" | 31 #include "Utils.h" |
32 | 32 |
33 ////////////////////////////////////////////////////////////////////////////// | |
34 | |
35 namespace QtHandles | 33 namespace QtHandles |
36 { | 34 { |
37 | |
38 ////////////////////////////////////////////////////////////////////////////// | |
39 | 35 |
40 template <class T> | 36 template <class T> |
41 ToolBarButton<T>::ToolBarButton (const graphics_object& go, QAction* action) | 37 ToolBarButton<T>::ToolBarButton (const graphics_object& go, QAction* action) |
42 : Object (go, action), m_separator (0) | 38 : Object (go, action), m_separator (0) |
43 { | 39 { |
60 w->insertAction (w->actions ().back (), action); | 56 w->insertAction (w->actions ().back (), action); |
61 if (m_separator) | 57 if (m_separator) |
62 w->insertAction (action, m_separator); | 58 w->insertAction (action, m_separator); |
63 } | 59 } |
64 | 60 |
65 ////////////////////////////////////////////////////////////////////////////// | |
66 | |
67 template <class T> | 61 template <class T> |
68 ToolBarButton<T>::~ToolBarButton (void) | 62 ToolBarButton<T>::~ToolBarButton (void) |
69 { | 63 { |
70 } | 64 } |
71 | |
72 ////////////////////////////////////////////////////////////////////////////// | |
73 | 65 |
74 template <class T> | 66 template <class T> |
75 void ToolBarButton<T>::update (int pId) | 67 void ToolBarButton<T>::update (int pId) |
76 { | 68 { |
77 typename T::properties& tp = properties<T> (); | 69 typename T::properties& tp = properties<T> (); |
122 Object::update (pId); | 114 Object::update (pId); |
123 break; | 115 break; |
124 } | 116 } |
125 } | 117 } |
126 | 118 |
127 ////////////////////////////////////////////////////////////////////////////// | |
128 | |
129 }; // namespace QtHandles | 119 }; // namespace QtHandles |