X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Fheader.cpp;h=ad91cd12f8c5df760058f121e0c2c30302efd43e;hp=ba0f9e61affba6c9314dfd66437142f99b6ce296;hb=6f925ba9d6faf1077b73c5a5808259576081716a;hpb=d9ea96280ab1128427143660ae375c30b19aa0cb diff --git a/pv/view/header.cpp b/pv/view/header.cpp index ba0f9e6..ad91cd1 100644 --- a/pv/view/header.cpp +++ b/pv/view/header.cpp @@ -14,8 +14,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * along with this program; if not, see . */ #include "header.hpp" @@ -39,6 +38,8 @@ #include using boost::make_filter_iterator; + +using std::count_if; using std::dynamic_pointer_cast; using std::max; using std::make_pair; @@ -49,7 +50,8 @@ using std::stable_sort; using std::vector; namespace pv { -namespace view { +namespace views { +namespace TraceView { const int Header::Padding = 12; const int Header::BaselineOffset = 5; @@ -138,8 +140,7 @@ void Header::contextMenuEvent(QContextMenuEvent *event) const vector< shared_ptr > items( view_.list_by_type()); - if (std::count_if(items.begin(), items.end(), item_selected) > 1) - { + if (count_if(items.begin(), items.end(), item_selected) > 1) { menu->addSeparator(); QAction *const group = new QAction(tr("Group"), this); @@ -178,7 +179,7 @@ void Header::on_group() shared_ptr group(new TraceGroup()); shared_ptr mouse_down_item( - std::dynamic_pointer_cast(mouse_down_item_)); + dynamic_pointer_cast(mouse_down_item_)); shared_ptr focus_item( mouse_down_item ? mouse_down_item : selected_items.front()); @@ -218,5 +219,6 @@ void Header::on_ungroup() } while (restart); } -} // namespace view +} // namespace TraceView +} // namespace views } // namespace pv