Commit 2f6f67ab authored by Méven Car's avatar Méven Car
Browse files

[Network Ioslave] Add Display name to network:/

Summary: CCBUG: 414345

Reviewers: ngraham, #frameworks

Reviewed By: ngraham

Subscribers: broulik, kde-frameworks-devel, kfm-devel

Tags: #dolphin, #frameworks

Differential Revision: https://phabricator.kde.org/D25435
parent 7b32d80a
add_definitions(-DTRANSLATION_DOMAIN=\"kio5_network\")
add_definitions(
-DQT_USE_FAST_OPERATOR_PLUS
-DQT_NO_CAST_TO_ASCII
......
#! /usr/bin/env bash
$XGETTEXT *.cpp -o $podir/kio5_network.pot
......@@ -15,7 +15,8 @@ set( kio_network_SRCS
# qt5_add_dbus_interface( kio_network_SRCS ../kded/org.kde.network.xml networkdbusproxy )
add_library(kio_network MODULE ${kio_network_SRCS} )
target_link_libraries( kio_network molletnetwork5 KF5::KIOCore )
target_link_libraries( kio_network molletnetwork5 KF5::KIOCore KF5::I18n )
set_target_properties(kio_network PROPERTIES OUTPUT_NAME "network")
install( TARGETS kio_network DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf5/kio)
......
......@@ -29,6 +29,8 @@
// network
#include <netdevice.h>
#include <netservice.h>
// KDE Libs
#include <KLocalizedString>
// Qt
#include <QEventLoop>
#include <QDebug>
......@@ -278,6 +280,7 @@ void NetworkSlave::listDir( const QUrl& url )
void NetworkSlave::feedEntryAsNetwork( KIO::UDSEntry* entry )
{
entry->fastInsert( KIO::UDSEntry::UDS_FILE_TYPE, S_IFDIR );
entry->fastInsert( KIO::UDSEntry::UDS_DISPLAY_NAME, i18n("Network"));
// entry->fastInsert( KIO::UDSEntry::UDS_ICON_NAME, NetworkIconName );
entry->fastInsert( KIO::UDSEntry::UDS_MIME_TYPE, QLatin1String(Mimetypes::NetworkMimetype) );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment