25 #include <QAbstractTextDocumentLayout>
29 #include <KDABLibFakes>
77 return mMinimumSizeHint;
80 mSizeHint = sizeForWidth( -1 );
84 sz.rwidth() = sizeForWidth( 0 ).width();
85 sz.rheight() = sizeForWidth( 32000 ).height();
86 if ( mSizeHint.height() < sz.height())
87 sz.rheight() = mSizeHint.height();
89 mMinimumSizeHint = sz;
94 QSize KDTextDocument::sizeForWidth(
int w)
98 setPageSize(QSize(0, 100000));
100 return documentLayout()->documentSize().toSize();