1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 17:52:10 +02:00

Used qIconProvider instead of QFileIconProvider() and removed msgHandler on Windows.

This commit is contained in:
S. Razi Alavizadeh 2013-02-22 03:43:59 +03:30
parent 17591ce89f
commit 120455b11a
2 changed files with 3 additions and 1 deletions

View File

@ -312,7 +312,7 @@ QString FtpSchemeReply::loadDirectory()
itemIcon = QzTools::iconFromFileName(itemPath);
}
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,");

View File

@ -161,11 +161,13 @@ int main(int argc, char* argv[])
{
QT_REQUIRE_VERSION(argc, argv, "4.7.0");
#ifndef Q_OS_WIN
#if (QT_VERSION < 0x050000)
qInstallMsgHandler(&msgHandler);
#else
qInstallMessageHandler(&msgHandler);
#endif
#endif
#if defined(QZ_WS_X11) && QT_VERSION < 0x050000
QApplication::setGraphicsSystem("raster"); // Better overall performance on X11