Bedit: apply last CComponent changes

This commit is contained in:
2012-08-07 19:40:39 +02:00
parent 9027ac6fba
commit 55a9b0db75
2 changed files with 8 additions and 14 deletions

View File

@@ -228,10 +228,10 @@ void CBEChannelWidget::paintItem2DetailsLine (int pos, int /*ch_index*/)
void CBEChannelWidget::clearItem2DetailsLine() void CBEChannelWidget::clearItem2DetailsLine()
{ {
if (dline != NULL) if (dline)
dline->paintBackground(); //kill details line dline->kill(); //kill details line
if (ibox != NULL) if (ibox)
ibox->paintBackground(); //kill info box ibox->kill(); //kill info box
} }
void CBEChannelWidget::hide() void CBEChannelWidget::hide()

View File

@@ -78,13 +78,7 @@ CBEChannelSelectWidget::CBEChannelSelectWidget(const std::string & Caption, unsi
CBEChannelSelectWidget::~CBEChannelSelectWidget() CBEChannelSelectWidget::~CBEChannelSelectWidget()
{ {
// clear details line
if (dline != NULL)
dline->paintBackground();
delete dline; delete dline;
// clear infobox
if (ibox != NULL)
ibox->paintBackground();
delete ibox; delete ibox;
} }
@@ -236,11 +230,11 @@ void CBEChannelSelectWidget::paintItem2DetailsLine (int pos, int /*ch_index*/)
int ypos2a = ypos2 + (info_height/2)-2; int ypos2a = ypos2 + (info_height/2)-2;
// clear details line // clear details line
if (dline != NULL) if (dline)
dline->paintBackground(); dline->hide();
// clear infobox // clear infobox
if (ibox != NULL) if (ibox)
ibox->hide(); ibox->hide();
// paint Line if detail info (and not valid list pos) // paint Line if detail info (and not valid list pos)
@@ -249,7 +243,7 @@ void CBEChannelSelectWidget::paintItem2DetailsLine (int pos, int /*ch_index*/)
if (dline == NULL) if (dline == NULL)
dline = new CComponentsDetailLine(xpos, ypos1a, ypos2a, fheight/2+1, info_height-RADIUS_LARGE*2); dline = new CComponentsDetailLine(xpos, ypos1a, ypos2a, fheight/2+1, info_height-RADIUS_LARGE*2);
dline->setYPos(ypos1a); dline->setYPos(ypos1a);
dline->paint(false); dline->paint(true);
//infobox //infobox
if (ibox == NULL) if (ibox == NULL)