Mercurial > octave-nkf
comparison libgui/graphics/PushButtonControl.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 |
---|---|
29 | 29 |
30 #include "PushButtonControl.h" | 30 #include "PushButtonControl.h" |
31 #include "Container.h" | 31 #include "Container.h" |
32 #include "Utils.h" | 32 #include "Utils.h" |
33 | 33 |
34 ////////////////////////////////////////////////////////////////////////////// | |
35 | |
36 namespace QtHandles | 34 namespace QtHandles |
37 { | 35 { |
38 | |
39 ////////////////////////////////////////////////////////////////////////////// | |
40 | 36 |
41 PushButtonControl* PushButtonControl::create (const graphics_object& go) | 37 PushButtonControl* PushButtonControl::create (const graphics_object& go) |
42 { | 38 { |
43 Object* parent = Object::parentObject (go); | 39 Object* parent = Object::parentObject (go); |
44 | 40 |
51 } | 47 } |
52 | 48 |
53 return 0; | 49 return 0; |
54 } | 50 } |
55 | 51 |
56 ////////////////////////////////////////////////////////////////////////////// | |
57 | |
58 PushButtonControl::PushButtonControl (const graphics_object& go, QPushButton* btn) | 52 PushButtonControl::PushButtonControl (const graphics_object& go, QPushButton* btn) |
59 : ButtonControl (go, btn) | 53 : ButtonControl (go, btn) |
60 { | 54 { |
61 btn->setAutoFillBackground (true); | 55 btn->setAutoFillBackground (true); |
62 } | 56 } |
63 | 57 |
64 ////////////////////////////////////////////////////////////////////////////// | |
65 | |
66 PushButtonControl::~PushButtonControl (void) | 58 PushButtonControl::~PushButtonControl (void) |
67 { | 59 { |
68 } | 60 } |
69 | |
70 ////////////////////////////////////////////////////////////////////////////// | |
71 | 61 |
72 void PushButtonControl::update (int pId) | 62 void PushButtonControl::update (int pId) |
73 { | 63 { |
74 uicontrol::properties& up = properties<uicontrol> (); | 64 uicontrol::properties& up = properties<uicontrol> (); |
75 QPushButton* btn = qWidget<QPushButton> (); | 65 QPushButton* btn = qWidget<QPushButton> (); |
83 BaseControl::update (pId); | 73 BaseControl::update (pId); |
84 break; | 74 break; |
85 } | 75 } |
86 } | 76 } |
87 | 77 |
88 ////////////////////////////////////////////////////////////////////////////// | |
89 | |
90 }; // namespave QtHandles | 78 }; // namespave QtHandles |