OSDN Git Service

WelcomeScreen: Don't cap the amount of shown projects/sessions
authorDaniel Molkentin <daniel.molkentin@nokia.com>
Fri, 1 Jul 2011 10:36:34 +0000 (12:36 +0200)
committerDaniel Molkentin <daniel.molkentin@nokia.com>
Fri, 1 Jul 2011 13:15:31 +0000 (15:15 +0200)
Change-Id: I8548edd63f3e9893f819e145c9244d6befc6ff88
Reviewed-on: http://codereview.qt.nokia.com/999
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
src/plugins/projectexplorer/projectwelcomepage.cpp

index 63807de..e24c7a2 100644 (file)
@@ -58,7 +58,7 @@ SessionModel::SessionModel(SessionManager *manager, QObject *parent)
 
 int SessionModel::rowCount(const QModelIndex &) const
 {
-    return qMin(m_manager->sessions().count(), 12);
+    return m_manager->sessions().count();
 }
 
 QVariant SessionModel::data(const QModelIndex &index, int role) const
@@ -95,7 +95,7 @@ ProjectModel::ProjectModel(ProjectExplorerPlugin *plugin, QObject *parent)
 
 int ProjectModel::rowCount(const QModelIndex &) const
 {
-    return qMin(m_plugin->recentProjects().count(), 6);
+    return m_plugin->recentProjects().count();
 }
 
 QVariant ProjectModel::data(const QModelIndex &index, int role) const