summaryrefslogtreecommitdiff
path: root/src/gui/popupmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-17 14:00:25 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-17 14:00:25 +0300
commitdbf6fd812e5eff87a8fc38c4f5635845493885b1 (patch)
treefd7479749b2d0b61249783b1b0d9080278a9bceb /src/gui/popupmanager.cpp
parenta9b9e09cfecc1ede11647bbbc09ddc198d783947 (diff)
downloadmv-dbf6fd812e5eff87a8fc38c4f5635845493885b1.tar.gz
mv-dbf6fd812e5eff87a8fc38c4f5635845493885b1.tar.bz2
mv-dbf6fd812e5eff87a8fc38c4f5635845493885b1.tar.xz
mv-dbf6fd812e5eff87a8fc38c4f5635845493885b1.zip
Create public variable for textpopup.
Diffstat (limited to 'src/gui/popupmanager.cpp')
-rw-r--r--src/gui/popupmanager.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/gui/popupmanager.cpp b/src/gui/popupmanager.cpp
index 331b34dd9..148689c7b 100644
--- a/src/gui/popupmanager.cpp
+++ b/src/gui/popupmanager.cpp
@@ -36,15 +36,12 @@
PopupManager *popupManager = nullptr;
-PopupManager::PopupManager() :
- mTextPopup(new TextPopup)
+PopupManager::PopupManager()
{
- mTextPopup->postInit();
}
PopupManager::~PopupManager()
{
- delete2(mTextPopup);
}
void PopupManager::closePopupMenu()
@@ -61,8 +58,8 @@ void PopupManager::hideBeingPopup()
void PopupManager::hideTextPopup()
{
- if (mTextPopup)
- mTextPopup->setVisible(false);
+ if (textPopup)
+ textPopup->setVisible(false);
}
void PopupManager::hidePopupMenu()
@@ -85,13 +82,13 @@ void PopupManager::clearPopup()
void PopupManager::showTextPopup(const int x, const int y,
const std::string &text)
{
- if (mTextPopup)
- mTextPopup->show(x, y, text);
+ if (textPopup)
+ textPopup->show(x, y, text);
}
bool PopupManager::isTextPopupVisible() const
{
- return mTextPopup ? mTextPopup->isPopupVisible() : false;
+ return textPopup ? textPopup->isPopupVisible() : false;
}
bool PopupManager::isBeingPopupVisible() const