#include <QtGui/qfontmetrics.h> #ifndef QFONTMETRICS_H class QFontMetricsF{ /* Some contents are skipped to improve readability */ public: class QString elidedText(class QString const & text, enum Qt::TextElideMode mode, qreal width, int flags = 0) const /* ... */ }; #endif // QFONTMETRICS_H