hide treebox node expander if no visible children
improve the new feature based on PR#500
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* A Tree Container class implementation
|
||||
* Copyright(C) 2003-2019 Jinhao(cnjinhao@hotmail.com)
|
||||
* Copyright(C) 2003-2020 Jinhao(cnjinhao@hotmail.com)
|
||||
*
|
||||
* Distributed under the Boost Software License, Version 1.0.
|
||||
* (See accompanying file LICENSE_1_0.txt or copy at
|
||||
@@ -508,7 +508,7 @@ namespace detail
|
||||
void _m_for_each(const ::std::string& key, Function function) const
|
||||
{
|
||||
//Ignores separaters at the begin of key.
|
||||
::std::string::size_type beg = key.find_first_not_of("\\/");
|
||||
auto beg = key.find_first_not_of("\\/");
|
||||
if (key.npos == beg)
|
||||
return;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* A Tree Box Implementation
|
||||
* Nana C++ Library(http://www.nanapro.org)
|
||||
* Copyright(C) 2003-2019 Jinhao(cnjinhao@hotmail.com)
|
||||
* Copyright(C) 2003-2020 Jinhao(cnjinhao@hotmail.com)
|
||||
*
|
||||
* Distributed under the Boost Software License, Version 1.0.
|
||||
* (See accompanying file LICENSE or copy at
|
||||
@@ -49,7 +49,7 @@ namespace nana
|
||||
|
||||
struct node_attribute
|
||||
{
|
||||
bool has_children;
|
||||
bool has_children; ///< Determines whether the node has visible children
|
||||
bool expended;
|
||||
checkstate checked;
|
||||
bool selected;
|
||||
|
||||
Reference in New Issue
Block a user