#include <QtGui/qtextlayout.h>
#ifndef QTEXTLAYOUT_H
class QTextLine{
   /* Some contents are skipped to improve readability */
   public: qreal cursorToX(int* cursorPos, enum QTextLine::Edge edge = QTextLine::Leading) const
   /* ... */
};
#endif // QTEXTLAYOUT_H