- helpbox: replace fixed value with a scalable one

Signed-off-by: Thilo Graf <dbt@novatux.de>

Merged with subsequently submitted build fix.
This commit is contained in:
svenhoefer
2018-05-16 00:02:04 +02:00
committed by Thilo Graf
parent 18a4ae0098
commit becf676dc6
2 changed files with 4 additions and 3 deletions

View File

@@ -157,7 +157,7 @@ void Helpbox::addSeparatorLine(const int& line_height, const int& line_indent)
addWindowItem(line);
}
void Helpbox::addSeparator(const int& line_height)
void Helpbox::addSeparator(const int& line_height, const int& line_indent)
{
CComponentsItem *pre_item = !ccw_body->empty() ? ccw_body->back() : NULL; //get the last current item
@@ -170,7 +170,7 @@ void Helpbox::addSeparator(const int& line_height)
line->setPageNumber(page);
int w_body = ccw_body->getWidth();
line->setWidth(w_body - 40);
line->setWidth(w_body - 2*line_indent);
line->setColorBody(ccw_body->getColorBody());
addWindowItem(line);

View File

@@ -161,7 +161,8 @@ public:
void addSeparatorLine( const int& line_height = HELPBOX_DEFAULT_LINE_HEIGHT,
const int& line_indent = HELPBOX_DEFAULT_LINE_INDENT);
///adds a simple empty separator as horizontal space, arg 'line_height' defines the space of full separator height
void addSeparator( const int& line_height = HELPBOX_DEFAULT_LINE_HEIGHT);
void addSeparator( const int& line_height = HELPBOX_DEFAULT_LINE_HEIGHT,
const int& line_indent = HELPBOX_DEFAULT_LINE_INDENT);
void addPagebreak();