Skip to content
Permalink
Browse files

Fix some tiny browser icons on hidpi screens

(cherry picked from commit 8ecb943)
  • Loading branch information
nyalldawson committed Sep 14, 2018
1 parent 739d50e commit 63bb1d80084d564f31369a0336db44bb4067d0e4
@@ -55,8 +55,7 @@ def __init__(self):
self.groupIcon.addPixmap(self.style().standardPixmap(
QStyle.SP_DirOpenIcon), QIcon.Normal, QIcon.On)

self.keyIcon = QIcon()
self.keyIcon.addPixmap(self.style().standardPixmap(QStyle.SP_FileIcon))
self.keyIcon = self.style().standardIcon(QStyle.SP_FileIcon)

self.clearButton = QPushButton(self.tr('Clear'))
self.clearButton.setToolTip(self.tr('Clear history'))
@@ -68,7 +68,7 @@ QgsSettingsTree::QgsSettingsTree( QWidget *parent )
QIcon::Normal, QIcon::Off );
groupIcon.addPixmap( style()->standardPixmap( QStyle::SP_DirOpenIcon ),
QIcon::Normal, QIcon::On );
keyIcon.addPixmap( style()->standardPixmap( QStyle::SP_FileIcon ) );
keyIcon = style()->standardIcon( QStyle::SP_FileIcon );

setEditTriggers( QAbstractItemView::AllEditTriggers );

@@ -91,7 +91,7 @@ void QgsBrowserModel::addRootItems()
QgsDirectoryItem *item = new QgsDirectoryItem( nullptr, tr( "Home" ), QDir::homePath(), QStringLiteral( HOME_PREFIX ) + QDir::homePath() );
item->setSortKey( QStringLiteral( " 2" ) );
QStyle *style = QApplication::style();
QIcon homeIcon( style->standardPixmap( QStyle::SP_DirHomeIcon ) );
QIcon homeIcon( style->standardIcon( QStyle::SP_DirHomeIcon ) );
item->setIcon( homeIcon );
connectItem( item );
mRootItems << item;
@@ -969,10 +969,10 @@ QgsDirectoryParamWidget::QgsDirectoryParamWidget( const QString &path, QWidget *
setHeaderLabels( labels );

QStyle *style = QApplication::style();
QIcon iconDirectory = QIcon( style->standardPixmap( QStyle::SP_DirClosedIcon ) );
QIcon iconFile = QIcon( style->standardPixmap( QStyle::SP_FileIcon ) );
QIcon iconDirLink = QIcon( style->standardPixmap( QStyle::SP_DirLinkIcon ) );
QIcon iconFileLink = QIcon( style->standardPixmap( QStyle::SP_FileLinkIcon ) );
QIcon iconDirectory = QIcon( style->standardIcon( QStyle::SP_DirClosedIcon ) );
QIcon iconFile = QIcon( style->standardIcon( QStyle::SP_FileIcon ) );
QIcon iconDirLink = QIcon( style->standardIcon( QStyle::SP_DirLinkIcon ) );
QIcon iconFileLink = QIcon( style->standardIcon( QStyle::SP_FileLinkIcon ) );

QList<QTreeWidgetItem *> items;

@@ -1099,7 +1099,7 @@ void QgsDirectoryParamWidget::showHideColumn()
QgsProjectItem::QgsProjectItem( QgsDataItem *parent, const QString &name, const QString &path )
: QgsDataItem( QgsDataItem::Project, parent, name, path )
{
mIconName = QStringLiteral( ":/images/icons/qgis-icon-16x16.png" );
mIconName = QStringLiteral( ":/images/icons/qgis_icon.svg" );
setToolTip( QDir::toNativeSeparators( path ) );
setState( Populated ); // no more children
}
@@ -45,7 +45,7 @@ QgsMssqlConnectionItem::QgsMssqlConnectionItem( QgsDataItem *parent, QString nam
, mAllowGeometrylessTables( true )
{
mCapabilities |= Fast | Collapse;
mIconName = QStringLiteral( "mIconConnect.png" );
mIconName = QStringLiteral( "mIconConnect.svg" );
}

QgsMssqlConnectionItem::~QgsMssqlConnectionItem()

0 comments on commit 63bb1d8

Please sign in to comment.
You can’t perform that action at this time.