Mercurial > hg > octave-nkf
diff libgui/graphics/Menu.cc @ 18569: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 |
line wrap: on
line diff
--- a/libgui/graphics/Menu.cc +++ b/libgui/graphics/Menu.cc @@ -33,13 +33,9 @@ #include "Menu.h" #include "Utils.h" -////////////////////////////////////////////////////////////////////////////// - namespace QtHandles { -////////////////////////////////////////////////////////////////////////////// - static QKeySequence accelSequence (const uimenu::properties& up) { std::string s (up.get_accelerator ()); @@ -60,8 +56,6 @@ return QKeySequence (); } -////////////////////////////////////////////////////////////////////////////// - Menu* Menu::create (const graphics_object& go) { Object* parent = Object::parentObject (go); @@ -77,8 +71,6 @@ return 0; } -////////////////////////////////////////////////////////////////////////////// - Menu::Menu (const graphics_object& go, QAction* action, Object* parent) : Object (go, action), m_parent (0), m_separator (0) { @@ -155,14 +147,10 @@ connect (action, SIGNAL (triggered (bool)), SLOT (actionTriggered (void))); } -////////////////////////////////////////////////////////////////////////////// - Menu::~Menu (void) { } -////////////////////////////////////////////////////////////////////////////// - void Menu::update (int pId) { uimenu::properties& up = properties<uimenu> (); @@ -252,8 +240,6 @@ } } -////////////////////////////////////////////////////////////////////////////// - QWidget* Menu::menu (void) { QAction* action = qWidget<QAction> (); @@ -271,8 +257,6 @@ return _menu; } -////////////////////////////////////////////////////////////////////////////// - void Menu::actionTriggered (void) { QAction* action = qWidget<QAction> (); @@ -282,15 +266,11 @@ gh_manager::post_callback (m_handle, "callback"); } -////////////////////////////////////////////////////////////////////////////// - void Menu::actionHovered (void) { gh_manager::post_callback (m_handle, "callback"); } -////////////////////////////////////////////////////////////////////////////// - void Menu::updateSiblingPositions (void) { if (m_parent) @@ -324,6 +304,4 @@ } } -////////////////////////////////////////////////////////////////////////////// - }; // namespace QtHandles