[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/plasma/applets/tasks
From: Robert Knight <robertknight () gmail ! com>
Date: 2007-09-07 18:02:24
Message-ID: 1189188144.363109.30750.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 709522 by knight:
Hard coded fixed maximum width for items. Prevents tasks that have long captions \
having task representations that span the entire window.
M +7 -1 tasks.cpp
--- trunk/KDE/kdebase/workspace/plasma/applets/tasks/tasks.cpp #709521:709522
@@ -203,13 +203,19 @@
}
QSizeF AbstractTaskItem::maximumSize() const
{
+ // A fixed maximum size is used instead of calculating the content size
+ // because overly-long task items make navigating around the task bar
+ // more difficult
+ QSizeF size(200,200);
+#if 0
//FIXME HARDCODE
QSizeF sz = QSizeF(MaxTaskIconSize + \
QFontMetricsF(QApplication::font()).width(text() + IconTextSpacing), 200);
+#endif
// qDebug() << "Task max size hint:" << sz;
- return sz;
+ return size;
}
void AbstractTaskItem::setIcon(const QIcon& icon)
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic