mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
Used qIconProvider instead of QFileIconProvider() and removed msgHandler on Windows.
This commit is contained in:
parent
17591ce89f
commit
120455b11a
|
@ -312,7 +312,7 @@ QString FtpSchemeReply::loadDirectory()
|
||||||
itemIcon = QzTools::iconFromFileName(itemPath);
|
itemIcon = QzTools::iconFromFileName(itemPath);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
itemIcon = QFileIconProvider().icon(QFileIconProvider::Folder);
|
itemIcon = qIconProvider->standardIcon(QStyle::SP_DirIcon);
|
||||||
}
|
}
|
||||||
|
|
||||||
line += QLatin1String("><td class=\"td-name\" style=\"background-image:url(data:image/png;base64,");
|
line += QLatin1String("><td class=\"td-name\" style=\"background-image:url(data:image/png;base64,");
|
||||||
|
|
|
@ -161,11 +161,13 @@ int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
QT_REQUIRE_VERSION(argc, argv, "4.7.0");
|
QT_REQUIRE_VERSION(argc, argv, "4.7.0");
|
||||||
|
|
||||||
|
#ifndef Q_OS_WIN
|
||||||
#if (QT_VERSION < 0x050000)
|
#if (QT_VERSION < 0x050000)
|
||||||
qInstallMsgHandler(&msgHandler);
|
qInstallMsgHandler(&msgHandler);
|
||||||
#else
|
#else
|
||||||
qInstallMessageHandler(&msgHandler);
|
qInstallMessageHandler(&msgHandler);
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(QZ_WS_X11) && QT_VERSION < 0x050000
|
#if defined(QZ_WS_X11) && QT_VERSION < 0x050000
|
||||||
QApplication::setGraphicsSystem("raster"); // Better overall performance on X11
|
QApplication::setGraphicsSystem("raster"); // Better overall performance on X11
|
||||||
|
|
Loading…
Reference in New Issue
Block a user