Added code to show protocol's icon in the chat window.
This commit is contained in:
parent
493fed2f80
commit
de33c1be80
|
@ -72,8 +72,13 @@ ChatWindow::ChatWindow(ContactLinker* cl)
|
||||||
fAvatar->SetExplicitAlignment(BAlignment(B_ALIGN_RIGHT, B_ALIGN_MIDDLE));
|
fAvatar->SetExplicitAlignment(BAlignment(B_ALIGN_RIGHT, B_ALIGN_MIDDLE));
|
||||||
fAvatar->SetBitmap(fContactLinker->AvatarBitmap());
|
fAvatar->SetBitmap(fContactLinker->AvatarBitmap());
|
||||||
|
|
||||||
|
BBitmap* protocolBitmap = fContactLinker->ProtocolBitmap();
|
||||||
|
BitmapView* protocolView = new BitmapView("protocolView");
|
||||||
|
protocolView->SetBitmap(protocolBitmap);
|
||||||
|
|
||||||
AddChild(BGroupLayoutBuilder(B_VERTICAL, 10)
|
AddChild(BGroupLayoutBuilder(B_VERTICAL, 10)
|
||||||
.AddGroup(B_HORIZONTAL)
|
.AddGroup(B_HORIZONTAL)
|
||||||
|
.Add(protocolView)
|
||||||
.Add(fPersonalMessage)
|
.Add(fPersonalMessage)
|
||||||
.Add(fAvatar)
|
.Add(fAvatar)
|
||||||
.End()
|
.End()
|
||||||
|
|
Ŝarĝante…
Reference in New Issue