mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
Bedit: apply last CComponent changes
This commit is contained in:
@@ -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()
|
||||||
|
@@ -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)
|
||||||
|
Reference in New Issue
Block a user