[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/akregator/src
From: Aurélien Gâteau <agateau () kde ! org>
Date: 2010-12-14 21:42:31
Message-ID: 20101214214231.3D3F9AC8A8 () svn ! kde ! org
[Download RAW message or body]
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);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic