void paintEvent(QPaintEvent *)
{
QRectF r = splash_.rect();
-#if QT_VERSION > 0x050000
+#if QT_VERSION >= 0x050000
r.setWidth(r.width() / splash_.devicePixelRatio());
r.setHeight(r.height() / splash_.devicePixelRatio());
#endif
// add busy indicator to statusbar
QLabel * busylabel = new QLabel(statusBar());
statusBar()->addPermanentWidget(busylabel);
- QString fn = toqstr(lyx::libFileSearch("images", "busy.gif").absFileName());
+ search_mode mode = theGuiApp()->imageSearchMode();
+ QString fn = toqstr(lyx::libFileSearch("images", "busy", "gif", mode).absFileName());
QMovie * busyanim = new QMovie(fn, QByteArray(), busylabel);
busylabel->setMovie(busyanim);
busyanim->start();
double GuiView::pixelRatio() const
{
-#if QT_VERSION > 0x050000
+#if QT_VERSION >= 0x050000
return devicePixelRatio();
#else
return 1.0;