diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-19 17:58:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-19 17:58:43 +0300 |
commit | d9d99a3ea8dc905487c2ff2c32c507bbd2df9f86 (patch) | |
tree | 335667265e5ab085c8f29a593717222c3669b068 /src/gui/widgets/browserbox.cpp | |
parent | d74af590c1e44fb1a931b8d68c1682418190a2fe (diff) | |
download | manaverse-d9d99a3ea8dc905487c2ff2c32c507bbd2df9f86.tar.gz manaverse-d9d99a3ea8dc905487c2ff2c32c507bbd2df9f86.tar.bz2 manaverse-d9d99a3ea8dc905487c2ff2c32c507bbd2df9f86.tar.xz manaverse-d9d99a3ea8dc905487c2ff2c32c507bbd2df9f86.zip |
Add function updateSize into browserbox.
Diffstat (limited to 'src/gui/widgets/browserbox.cpp')
-rw-r--r-- | src/gui/widgets/browserbox.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp index a4f6de473..486ad9ebd 100644 --- a/src/gui/widgets/browserbox.cpp +++ b/src/gui/widgets/browserbox.cpp @@ -887,6 +887,13 @@ void BrowserBox::updateHeight() } } +void BrowserBox::updateSize(const bool always) +{ + if (always) + mUpdateTime = 0; + updateHeight(); +} + std::string BrowserBox::getTextAtPos(const int x, const int y) const { int textX = 0; |