From 3f1a475c6cb6501a06efc7d5d62cecc104faee26 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 19 Mar 2011 05:50:44 +0200 Subject: Add flag to enable or disable scroll buttons in tabbed area. Also add not working right margin to tabbed area. --- src/gui/chat.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/chat.cpp') diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp index 6815796ff..8923b40f4 100644 --- a/src/gui/chat.cpp +++ b/src/gui/chat.cpp @@ -159,6 +159,7 @@ ChatWindow::ChatWindow(): mChatInput->addActionListener(this); mChatTabs = new TabbedArea; + mChatTabs->enableScrollButtons(true); mChatColor = config.getIntValue("chatColor"); mColorListModel = new ColorListModel; @@ -300,6 +301,8 @@ void ChatWindow::adjustTabSize() mColorPicker->setPosition(this->getWidth() - mColorPicker->getWidth() - 2*getPadding() - 8 - 16, getPadding()); +// if (mColorPicker->isVisible()) +// mChatTabs->setRightMargin(mColorPicker->getWidth() - 8); } void ChatWindow::widgetResized(const gcn::Event &event) -- cgit v1.2.3-60-g2f50