Rename set_row_visible to set_row_shown.
This commit is contained in:
parent
229470a84b
commit
26de717da2
3 changed files with 6 additions and 12 deletions
|
@ -155,7 +155,7 @@ bool tgame_load::filter_text_changed(ttext_* textbox, const std::string& text)
|
|||
tgrid* row = list.get_row_grid(i);
|
||||
|
||||
if (text == ""){
|
||||
list.set_row_visible(i, true);
|
||||
list.set_row_shown(i, true);
|
||||
}
|
||||
else{
|
||||
tgrid::iterator it = row->begin();
|
||||
|
@ -176,7 +176,7 @@ bool tgame_load::filter_text_changed(ttext_* textbox, const std::string& text)
|
|||
}
|
||||
}
|
||||
|
||||
list.set_row_visible(i
|
||||
list.set_row_shown(i
|
||||
, !found ? twidget::VISIBLE : twidget::INVISIBLE);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -91,7 +91,7 @@ void tlistbox::set_row_active(const unsigned row, const bool active)
|
|||
generator_->get_item(row).set_active(active);
|
||||
}
|
||||
|
||||
void tlistbox::set_row_visible(const unsigned row, const bool visible)
|
||||
void tlistbox::set_row_shown(const unsigned row, const bool shown)
|
||||
{
|
||||
assert(generator_);
|
||||
|
||||
|
@ -104,7 +104,7 @@ void tlistbox::set_row_visible(const unsigned row, const bool visible)
|
|||
{
|
||||
twindow::tinvalidate_layout_blocker invalidate_layout_blocker(*window);
|
||||
|
||||
generator_->set_item_shown(row, visible);
|
||||
generator_->set_item_shown(row, shown);
|
||||
resize_needed = !content_resize_request();
|
||||
}
|
||||
|
||||
|
|
|
@ -102,16 +102,10 @@ public:
|
|||
/**
|
||||
* Makes a row visible or invisible.
|
||||
*
|
||||
* @todo maybe change the name to show row due to the fact that it's
|
||||
* different from the twidget::tvisible the row is only visible or
|
||||
* invisible not hidden.
|
||||
*
|
||||
* show_row(row, show)
|
||||
*
|
||||
* @param row The row to show or hide.
|
||||
* @param visible true visible, false invisible.
|
||||
* @param shown true visible, false invisible.
|
||||
*/
|
||||
void set_row_visible(const unsigned row, const bool visible);
|
||||
void set_row_shown(const unsigned row, const bool shown);
|
||||
|
||||
/**
|
||||
* Returns the grid of the wanted row.
|
||||
|
|
Loading…
Add table
Reference in a new issue