ui: Added custom tooltipping to code and graph (issue #195)

* Tooltips show node type with access specifier, reference count and fully qualified name
* Fields and global variables include the type name
* Methods and functinos show whole signature. Gets broken into multiple lines if too long.

Included changes:

* Upgraded to C++14
* fixed clang warnings
* Pass location of .srctrlprj file to build.sh script to load on launch
* Split off QtCodeField for showing highlighted and annotated code fom QtCodeArea
* removed TokenComponentSignature
* added TaskDecoratorDelay

bug id = 195
This commit is contained in:
Eberhard Graether
2017-07-31 12:45:22 +02:00
parent 01b1e0d6f1
commit 01864b4d0c
79 changed files with 2340 additions and 1009 deletions
+18 -1
View File
@@ -200,6 +200,19 @@ void QtMainWindow::hideView(View* view)
getDockWidgetForView(view)->widget->setHidden(true);
}
View* QtMainWindow::findFloatingView(const std::string& name) const
{
for (size_t i = 0; i < m_dockWidgets.size(); i++)
{
if (std::string(m_dockWidgets[i].view->getName()) == name && m_dockWidgets[i].widget->isFloating())
{
return m_dockWidgets[i].view;
}
}
return nullptr;
}
void QtMainWindow::loadLayout()
{
QSettings settings(UserPaths::getWindowSettingsPath().str().c_str(), QSettings::IniFormat);
@@ -337,7 +350,11 @@ bool QtMainWindow::event(QEvent* event)
{
if (event->type() == QEvent::WindowActivate)
{
MessageWindowFocus().dispatch();
MessageWindowFocus(true).dispatch();
}
else if (event->type() == QEvent::WindowDeactivate)
{
MessageWindowFocus(false).dispatch();
}
return QMainWindow::event(event);