diff options
author | mberezhnoy <mberezhnoy@productengine.com> | 2013-02-01 01:00:52 +0200 |
---|---|---|
committer | mberezhnoy <mberezhnoy@productengine.com> | 2013-02-01 01:00:52 +0200 |
commit | 8fbc0aada88c6a3743f61dfc57018385a31802f0 (patch) | |
tree | 56888fe7f24736cce1980e08d349d20f84b814ed /indra/newview/llchathistory.cpp | |
parent | a12200b91b0ca20dfff2df8aa71c6f53ac0603ee (diff) | |
parent | d2a17e20ca889851406f22907df35b17f5030279 (diff) |
merging
Diffstat (limited to 'indra/newview/llchathistory.cpp')
-rw-r--r-- | indra/newview/llchathistory.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/indra/newview/llchathistory.cpp b/indra/newview/llchathistory.cpp index 3f959c0510..c4f63d9256 100644 --- a/indra/newview/llchathistory.cpp +++ b/indra/newview/llchathistory.cpp @@ -113,6 +113,8 @@ public: mSessionID(), mMinUserNameWidth(0), mUserNameFont(NULL), + mUserNameTextBox(NULL), + mTimeBoxTextBox(NULL), mAvatarNameCacheConnection() {} @@ -196,6 +198,9 @@ public: setMouseEnterCallback(boost::bind(&LLChatHistoryHeader::showInfoCtrl, this)); setMouseLeaveCallback(boost::bind(&LLChatHistoryHeader::hideInfoCtrl, this)); + mUserNameTextBox = getChild<LLTextBox>("user_name"); + mTimeBoxTextBox = getChild<LLTextBox>("time_box"); + return LLPanel::postBuild(); } @@ -385,8 +390,8 @@ public: /*virtual*/ void draw() { - LLTextBox* user_name = getChild<LLTextBox>("user_name"); - LLTextBox* time_box = getChild<LLTextBox>("time_box"); + LLTextBox* user_name = mUserNameTextBox; //getChild<LLTextBox>("user_name"); + LLTextBox* time_box = mTimeBoxTextBox; //getChild<LLTextBox>("time_box"); LLRect user_name_rect = user_name->getRect(); S32 user_name_width = user_name_rect.getWidth(); @@ -591,6 +596,8 @@ protected: S32 mMinUserNameWidth; const LLFontGL* mUserNameFont; + LLTextBox* mUserNameTextBox; + LLTextBox* mTimeBoxTextBox; private: boost::signals2::connection mAvatarNameCacheConnection; |