Skip to content
Permalink
Browse files
Remove updateRecentProjectsVisibility()
because the current implementation has GUI issues.

Fixes: #33718
  • Loading branch information
tomtor committed Dec 20, 2020
1 parent 869e989 commit e007dccadc66627f94f025431d0e7ccd7ad48f3d
Showing with 0 additions and 15 deletions.
  1. +0 −13 src/app/qgswelcomepage.cpp
  2. +0 −2 src/app/qgswelcomepage.h
@@ -75,11 +75,6 @@ QgsWelcomePage::QgsWelcomePage( bool skipVersionCheck, QWidget *parent )
mRecentProjectsListView->setModel( mRecentProjectsModel );
QgsProjectListItemDelegate *recentProjectsDelegate = new QgsProjectListItemDelegate( mRecentProjectsListView );
mRecentProjectsListView->setItemDelegate( recentProjectsDelegate );
connect( mRecentProjectsModel, &QAbstractItemModel::rowsRemoved, this, [this]
{
updateRecentProjectsVisibility();
}
);

leftLayout->addWidget( mRecentProjectsListView, 1 );
leftContainer->setLayout( leftLayout );
@@ -194,7 +189,6 @@ QgsWelcomePage::~QgsWelcomePage()
void QgsWelcomePage::setRecentProjects( const QList<QgsRecentProjectItemsModel::RecentProjectData> &recentProjects )
{
mRecentProjectsModel->setRecentProjects( recentProjects );
updateRecentProjectsVisibility();
}

QString QgsWelcomePage::newsFeedUrl()
@@ -411,13 +405,6 @@ void QgsWelcomePage::showContextMenuForNews( QPoint point )
menu->popup( mNewsFeedListView->mapToGlobal( point ) );
}

void QgsWelcomePage::updateRecentProjectsVisibility()
{
const bool visible = mRecentProjectsModel->rowCount() > 0;
mRecentProjectsListView->setVisible( visible );
mRecentProjectsTitle->setVisible( visible );
}

void QgsWelcomePage::updateNewsFeedVisibility()
{
if ( !mNewsFeedModel || !mNewsFeedListView || !mSplitter2 )
@@ -68,8 +68,6 @@ class QgsWelcomePage : public QWidget
void updateNewsFeedVisibility();

private:
void updateRecentProjectsVisibility();

QgsRecentProjectItemsModel *mRecentProjectsModel = nullptr;
QTextBrowser *mVersionInformation = nullptr;
QgsVersionInfo *mVersionInfo = nullptr;

0 comments on commit e007dcc

Please sign in to comment.