SVN commit 1206541 by gateau: Increase default height so that one can read 25 lines of text (more or less) CCMAIL:osterfeld@kde.org M +8 -0 articleviewer.cpp M +2 -0 articleviewer.h --- trunk/KDE/kdepim/akregator/src/articleviewer.cpp #1206540:1206541 @@ -656,6 +656,14 @@ endWriting(); } +QSize ArticleViewer::sizeHint() const +{ + // Increase height a bit so that we can (roughly) read 25 lines of text + QSize sh = QWidget::sizeHint(); + sh.setHeight(qMax(sh.height(), 25 * fontMetrics().height())); + return sh; +} + void ArticleViewer::displayAboutPage() { QString location = KStandardDirs::locate("data", "akregator/about/main.html"); --- trunk/KDE/kdepim/akregator/src/articleviewer.h #1206540:1206541 @@ -79,6 +79,8 @@ * @param node The node to observe */ void showNode(Akregator::TreeNode* node); + QSize sizeHint() const; + public slots: void slotZoomIn(int);