mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +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);
|
||||
}
|
||||
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,");
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user