"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/app/qgswelcomepage.cpp" between
QGIS-final-3_14_15.tar.gz and QGIS-final-3_14_16.tar.gz

About: QGIS (Quantum GIS) is a Geographic Information System that supports vector, raster, and database formats. Latest release (3.14.x series).

qgswelcomepage.cpp  (QGIS-final-3_14_15):qgswelcomepage.cpp  (QGIS-final-3_14_16)
skipping to change at line 441 skipping to change at line 441
const bool visible = mNewsFeedModel->rowCount() > 0; const bool visible = mNewsFeedModel->rowCount() > 0;
mNewsFeedListView->setVisible( visible ); mNewsFeedListView->setVisible( visible );
mNewsFeedTitle->setVisible( visible ); mNewsFeedTitle->setVisible( visible );
if ( !visible ) if ( !visible )
{ {
mSplitter2->setSizes( QList<int>() << 0 << 99999999 ); mSplitter2->setSizes( QList<int>() << 0 << 99999999 );
} }
else else
{ {
mSplitter2->restoreState( QgsSettings().value( QStringLiteral( "Windows/Welc omePage/SplitState2" ), QVariant(), QgsSettings::App ).toByteArray() ); mSplitter2->restoreState( QgsSettings().value( QStringLiteral( "Windows/Welc omePage/SplitState2" ), QVariant(), QgsSettings::App ).toByteArray() );
if ( mSplitter2->sizes().first() == 0 )
{
int splitSize = mSplitter2->height() / 2;
mSplitter2->setSizes( QList< int > { splitSize, splitSize} );
}
} }
} }
bool QgsWelcomePage::eventFilter( QObject *obj, QEvent *event ) bool QgsWelcomePage::eventFilter( QObject *obj, QEvent *event )
{ {
if ( obj == mNewsFeedListView->viewport() && event->type() == QEvent::MouseBut tonRelease ) if ( obj == mNewsFeedListView->viewport() && event->type() == QEvent::MouseBut tonRelease )
{ {
QMouseEvent *mouseEvent = dynamic_cast< QMouseEvent *>( event ); QMouseEvent *mouseEvent = dynamic_cast< QMouseEvent *>( event );
if ( mouseEvent->button() == Qt::LeftButton ) if ( mouseEvent->button() == Qt::LeftButton )
{ {
 End of changes. 1 change blocks. 
0 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)