12345678910111213141516171819202122 |
- #ifndef AUTOWRAP_H
- #define AUTOWRAP_H
- #include <QPair>
- #include <QString>
- struct CharWidthType
- {
- int num;
- int width;
- };
- class TextWrap
- {
- public:
-
- static int getWidth(QChar c);
- static QPair<QString, bool> wrap(const QString &text, int width, bool once = true);
- };
- #endif
|