"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/symbolpanel/symbollistmodel.cpp" between
texstudio-2.12.20.tar.gz and texstudio-2.12.22.tar.gz

About: TeXstudio is an integrated environment for writing LaTeX documents (as easy and comfortable as possible).

symbollistmodel.cpp  (texstudio-2.12.20):symbollistmodel.cpp  (texstudio-2.12.22)
skipping to change at line 241 skipping to change at line 241
#endif #endif
emit favoritesChanged(); emit favoritesChanged();
break; break;
} }
} }
} }
} }
QIcon SymbolListModel::getIcon(const SymbolItem &item) const QIcon SymbolListModel::getIcon(const SymbolItem &item) const
{ {
#if defined( Q_OS_MAC ) && (QT_VERSION >= 0x050500) #if defined( Q_OS_MAC ) && (QT_VERSION >= 0x050500) && (QT_VERSION < QT_VERSION_ CHECK(5,14,0))
// work-around for another QT/OSX bug // work-around for another QT/OSX bug
if(item.iconFile.endsWith(".svg")){ if(item.iconFile.endsWith(".svg")){
const int sz = iconSizeHint + 4; const int sz = iconSizeHint + 4;
QSvgRenderer svgRender(item.iconFile); QSvgRenderer svgRender(item.iconFile);
QImage img(2*sz, 2*sz, QImage::Format_ARGB32); QImage img(2*sz, 2*sz, QImage::Format_ARGB32);
//img.setDevicePixelRatio(2.0); //img.setDevicePixelRatio(2.0);
img.fill(0x000000000); img.fill(0x000000000);
QPainter p(&img); QPainter p(&img);
QSize svgSize=svgRender.defaultSize()*4; QSize svgSize=svgRender.defaultSize()*4;
if(svgSize.width()>2*sz){ if(svgSize.width()>2*sz){
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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