TLegend and Marker Style

Hi,
I have to display a legend on my plot. I first plot a histogram and the legends are ok. But, when I switch over to a 2d scatter plot, the legend shows the line style and not the marker style, which is what I want. How do I do it?

Here is a short piece of my code:
TLegend leg = new TLegend(0.78,0.73,0.98,0.83); // Add Legend
QByteArray draw = DrawOption.toLatin1();//
if(ui.SetHisto->isChecked()){// if histogram
htemp1 = (TH1F
) gPad->GetPrimitive(“htemp”);
if(htemp1!=NULL){
htemp1->SetMarkerStyle(ui.mstyle->value());
htemp1->SetMarkerColor(ui.mcolor->value());
htemp1->SetMarkerSize((ui.msize->value())/5);
htemp1->SetLineWidth(ui.linewidth->value());
htemp1->SetLineColor(ui.linecolor->value());
htemp1->SetLineStyle(ui.linestyle->value());
htemp1->Draw(draw.data());
leg->AddEntry(htemp1,"",“l”);
}
}
else{//if scatter plot
htemp2 = (TH2F*) gPad->GetPrimitive(“htemp”);
if(htemp2!=NULL){
htemp2->SetMarkerStyle(ui.mstyle->value());
htemp2->SetMarkerColor(ui.mcolor->value());
htemp2->SetMarkerSize((ui.msize->value())/5);
htemp2->SetLineWidth(ui.linewidth->value());
htemp2->SetLineColor(ui.linecolor->value());
htemp2->SetLineStyle(ui.linestyle->value());
htemp2->Draw(draw.data());
leg->AddEntry(htemp2,"",“l”);
}
}
leg->SetTextColor(1);
leg->SetTextFont(45);
leg->SetTextSize(14);
leg->Draw();

Thanks,
    dsmcc

see doc, use option “P”

Rene