From kde-commits Tue Dec 14 21:42:31 2010 From: =?utf-8?q?Aur=C3=A9lien=20G=C3=A2teau?= Date: Tue, 14 Dec 2010 21:42:31 +0000 To: kde-commits Subject: KDE/kdepim/akregator/src Message-Id: <20101214214231.3D3F9AC8A8 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=129236298521952 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);