Files
Sourcetrail/src/lib_gui/qt/view/QtGraphViewStyleImpl.h
T
mlangkabel dfc6d88432 build: search headers in all source directories
* removed paths in include directives
* changed cmake to provide necessary header search paths
* changed name of version.h to productVersion.h due to name conflict
2018-09-18 19:00:18 +02:00

23 lines
570 B
C++

#ifndef QT_GRAPH_VIEW_STYLE_IMPL_H
#define QT_GRAPH_VIEW_STYLE_IMPL_H
#include "GraphViewStyleImpl.h"
class QFont;
class QtGraphViewStyleImpl
: public GraphViewStyleImpl
{
public:
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