* Move the flag to the left of the listviews, like in the time preflet.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37760 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adrien Destugues 2010-07-26 15:13:00 +00:00
parent 111b8ee836
commit d5e92b1a2c

View File

@ -85,16 +85,6 @@ LanguageListItem::DrawItem(BView* owner, BRect frame, bool complete)
} else
owner->SetLowColor(owner->ViewColor());
BRect iconFrame(frame);
iconFrame.Set(iconFrame.left - 11, iconFrame.top + 1, iconFrame.left + 4,
iconFrame.top + 16);
if (fIcon != NULL && fIcon->IsValid()) {
owner->SetDrawingMode(B_OP_OVER);
owner->DrawBitmap(fIcon, iconFrame);
owner->SetDrawingMode(B_OP_COPY);
}
BString text = Text();
if (IsEnabled())
owner->SetHighColor(kBlack);
@ -114,6 +104,19 @@ LanguageListItem::DrawItem(BView* owner, BRect frame, bool complete)
+ (frame.Height() - (finfo.ascent + finfo.descent + finfo.leading)) / 2
+ (finfo.ascent + finfo.descent) - 1);
owner->DrawString(text.String());
// Draw the icon
frame.left = frame.right - 17;
BRect iconFrame(frame);
iconFrame.Set(iconFrame.left, iconFrame.top + 1, iconFrame.left + 15,
iconFrame.top + 16);
if (fIcon != NULL && fIcon->IsValid()) {
owner->SetDrawingMode(B_OP_OVER);
owner->DrawBitmap(fIcon, iconFrame);
owner->SetDrawingMode(B_OP_COPY);
}
}