* Show graph legend via 'legend' command or '?' button in the lower right corner * Legend is not interactive: nodes and edges not clickable or moveable * CXX and Java node types are mixed
This commit is contained in:
@@ -3,14 +3,20 @@
|
||||
|
||||
#include "component/view/GraphViewStyleImpl.h"
|
||||
|
||||
class QFont;
|
||||
|
||||
class QtGraphViewStyleImpl
|
||||
: public GraphViewStyleImpl
|
||||
{
|
||||
public:
|
||||
virtual ~QtGraphViewStyleImpl();
|
||||
virtual float getCharWidth(NodeType::StyleType type) override;
|
||||
virtual float getCharHeight(NodeType::StyleType type) override;
|
||||
virtual float getGraphViewZoomDifferenceForPlatform() override;
|
||||
virtual ~QtGraphViewStyleImpl() = default;
|
||||
|
||||
float getCharWidth(const std::string& fontName, size_t fontSize) override;
|
||||
float getCharHeight(const std::string& fontName, size_t fontSize) override;
|
||||
float getGraphViewZoomDifferenceForPlatform() override;
|
||||
|
||||
private:
|
||||
QFont getFontForStyleType(const std::string& fontName, size_t fontSize) const;
|
||||
};
|
||||
|
||||
#endif // QT_GRAPH_VIEW_STYLE_IMPL_H
|
||||
|
||||
Reference in New Issue
Block a user