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:
@@ -0,0 +1,36 @@
|
||||
#ifndef QT_TOOLTIP_VIEW
|
||||
#define QT_TOOLTIP_VIEW
|
||||
|
||||
#include "component/view/TooltipView.h"
|
||||
#include "qt/utility/QtThreadedFunctor.h"
|
||||
|
||||
class QTimer;
|
||||
class QtTooltip;
|
||||
|
||||
class QtTooltipView
|
||||
: public TooltipView
|
||||
{
|
||||
public:
|
||||
QtTooltipView(ViewLayout* viewLayout);
|
||||
~QtTooltipView();
|
||||
|
||||
// View implementation
|
||||
virtual void createWidgetWrapper();
|
||||
virtual void initView();
|
||||
virtual void refreshView();
|
||||
|
||||
virtual void showTooltip(TooltipInfo info, const View* parent);
|
||||
virtual void hideTooltip(bool force);
|
||||
|
||||
virtual bool tooltipVisible() const;
|
||||
|
||||
private:
|
||||
void setStyleSheet();
|
||||
void doRefreshView();
|
||||
|
||||
QtThreadedLambdaFunctor m_onQtThread;
|
||||
|
||||
QtTooltip* m_widget;
|
||||
};
|
||||
|
||||
#endif // QT_TOOLTIP_VIEW
|
||||
Reference in New Issue
Block a user