From 1df315160d006cad6f862e4d392d8d147de2211e Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 10 Sep 2016 17:26:40 +0200 Subject: [PATCH] remove timeout for status messages related to (pre-)selection --- src/Gui/Selection.cpp | 6 +++--- src/Gui/SoFCSelection.cpp | 10 +++++----- src/Gui/SoFCUnifiedSelection.cpp | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/Gui/Selection.cpp b/src/Gui/Selection.cpp index 36f80d254..cfefc5854 100644 --- a/src/Gui/Selection.cpp +++ b/src/Gui/Selection.cpp @@ -499,7 +499,7 @@ bool SelectionSingleton::setPreselect(const char* pDocName, const char* pObjectN ); if (getMainWindow()) { - getMainWindow()->showMessage(msg,3000); + getMainWindow()->showMessage(msg); Gui::MDIView* mdi = Gui::Application::Instance->activeDocument()->getActiveView(); mdi->setOverrideCursor(QCursor(Qt::ForbiddenCursor)); } @@ -574,7 +574,7 @@ void SelectionSingleton::setPreselectCoord( float x, float y, float z) ,x,y,z); if (getMainWindow()) - getMainWindow()->showMessage(QString::fromLatin1(buf),3000); + getMainWindow()->showMessage(QString::fromLatin1(buf)); } void SelectionSingleton::rmvPreselect() @@ -679,7 +679,7 @@ bool SelectionSingleton::addSelection(const char* pDocName, const char* pObjectN } else { msg = QCoreApplication::translate("SelectionFilter","Selection not allowed by filter"); } - getMainWindow()->showMessage(msg,5000); + getMainWindow()->showMessage(msg); Gui::MDIView* mdi = Gui::Application::Instance->activeDocument()->getActiveView(); mdi->setOverrideCursor(Qt::ForbiddenCursor); } diff --git a/src/Gui/SoFCSelection.cpp b/src/Gui/SoFCSelection.cpp index 53b1e1b7b..6c83b1ae3 100644 --- a/src/Gui/SoFCSelection.cpp +++ b/src/Gui/SoFCSelection.cpp @@ -345,7 +345,7 @@ SoFCSelection::handleEvent(SoHandleEventAction * action) ,pp->getPoint()[1] ,pp->getPoint()[2]); - getMainWindow()->showMessage(QString::fromLatin1(buf),3000); + getMainWindow()->showMessage(QString::fromLatin1(buf)); } else { // picked point if (highlighted) { @@ -404,7 +404,7 @@ SoFCSelection::handleEvent(SoHandleEventAction * action) ,pp->getPoint()[1] ,pp->getPoint()[2]); - getMainWindow()->showMessage(QString::fromLatin1(buf),3000); + getMainWindow()->showMessage(QString::fromLatin1(buf)); } } } @@ -438,7 +438,7 @@ SoFCSelection::handleEvent(SoHandleEventAction * action) ,pp->getPoint()[1] ,pp->getPoint()[2]); - getMainWindow()->showMessage(QString::fromLatin1(buf),3000); + getMainWindow()->showMessage(QString::fromLatin1(buf)); } } @@ -569,7 +569,7 @@ SoFCSelection::handleEvent(SoHandleEventAction * action) ,pp->getPoint()[1] ,pp->getPoint()[2]); - getMainWindow()->showMessage(QString::fromLatin1(buf),3000); + getMainWindow()->showMessage(QString::fromLatin1(buf)); } } } @@ -603,7 +603,7 @@ SoFCSelection::handleEvent(SoHandleEventAction * action) ,pp->getPoint()[1] ,pp->getPoint()[2]); - getMainWindow()->showMessage(QString::fromLatin1(buf),3000); + getMainWindow()->showMessage(QString::fromLatin1(buf)); } } diff --git a/src/Gui/SoFCUnifiedSelection.cpp b/src/Gui/SoFCUnifiedSelection.cpp index d5fa61b9a..bfb438aa5 100644 --- a/src/Gui/SoFCUnifiedSelection.cpp +++ b/src/Gui/SoFCUnifiedSelection.cpp @@ -373,7 +373,7 @@ SoFCUnifiedSelection::handleEvent(SoHandleEventAction * action) ,pp->getPoint()[1] ,pp->getPoint()[2]); - getMainWindow()->showMessage(QString::fromLatin1(buf),3000); + getMainWindow()->showMessage(QString::fromLatin1(buf)); if (Gui::Selection().setPreselect(documentName.c_str() ,objectName.c_str() @@ -470,7 +470,7 @@ SoFCUnifiedSelection::handleEvent(SoHandleEventAction * action) ,pp->getPoint()[1] ,pp->getPoint()[2]); - getMainWindow()->showMessage(QString::fromLatin1(buf),3000); + getMainWindow()->showMessage(QString::fromLatin1(buf)); } } } @@ -508,7 +508,7 @@ SoFCUnifiedSelection::handleEvent(SoHandleEventAction * action) ,pp->getPoint()[1] ,pp->getPoint()[2]); - getMainWindow()->showMessage(QString::fromLatin1(buf),3000); + getMainWindow()->showMessage(QString::fromLatin1(buf)); } }