diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-06 20:44:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-06 20:44:17 +0300 |
commit | d6c201415ccf5b1ceebf92fc588f22dc20f9bd81 (patch) | |
tree | 36f988c54a98ab9ebb4fde1d7c6aa28a5851f1d6 /src/gui/widgets/tabbedarea.cpp | |
parent | 73e7be1617217396c5f1eead52af87bc7fef2357 (diff) | |
download | manaplus-d6c201415ccf5b1ceebf92fc588f22dc20f9bd81.tar.gz manaplus-d6c201415ccf5b1ceebf92fc588f22dc20f9bd81.tar.bz2 manaplus-d6c201415ccf5b1ceebf92fc588f22dc20f9bd81.tar.xz manaplus-d6c201415ccf5b1ceebf92fc588f22dc20f9bd81.zip |
Allow resize chat emotes window.
Diffstat (limited to 'src/gui/widgets/tabbedarea.cpp')
-rw-r--r-- | src/gui/widgets/tabbedarea.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/widgets/tabbedarea.cpp b/src/gui/widgets/tabbedarea.cpp index 25fc3b8f2..88d12764a 100644 --- a/src/gui/widgets/tabbedarea.cpp +++ b/src/gui/widgets/tabbedarea.cpp @@ -196,6 +196,13 @@ void TabbedArea::addTab(Tab *const tab, gcn::Widget *const widget) updateArrowEnableState(); } +void TabbedArea::adjustWidget(gcn::Widget *const widget) const +{ + const int frameSize = 2 * mFrameSize; + widget->setSize(getWidth() - frameSize, + getHeight() - frameSize - mTabContainer->getHeight()); +} + void TabbedArea::addTab(const std::string &caption, gcn::Widget *const widget) { Tab *const tab = new Tab(this); |