forked from qt-creator/qt-creator
WelcomeScreen: Don't cap the amount of shown projects/sessions
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>
This commit is contained in:
@@ -58,7 +58,7 @@ SessionModel::SessionModel(SessionManager *manager, QObject *parent)
|
|||||||
|
|
||||||
int SessionModel::rowCount(const QModelIndex &) const
|
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
|
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
|
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
|
QVariant ProjectModel::data(const QModelIndex &index, int role) const
|
||||||
|
Reference in New Issue
Block a user