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( add_definitions(
-DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_OPERATOR_PLUS
-DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_TO_ASCII
......
#! /usr/bin/env bash
$XGETTEXT *.cpp -o $podir/kio5_network.pot
...@@ -15,7 +15,8 @@ set( kio_network_SRCS ...@@ -15,7 +15,8 @@ set( kio_network_SRCS
# qt5_add_dbus_interface( kio_network_SRCS ../kded/org.kde.network.xml networkdbusproxy ) # qt5_add_dbus_interface( kio_network_SRCS ../kded/org.kde.network.xml networkdbusproxy )
add_library(kio_network MODULE ${kio_network_SRCS} ) 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") set_target_properties(kio_network PROPERTIES OUTPUT_NAME "network")
install( TARGETS kio_network DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf5/kio) install( TARGETS kio_network DESTINATION ${KDE_INSTALL_PLUGINDIR}/kf5/kio)
......
...@@ -29,6 +29,8 @@ ...@@ -29,6 +29,8 @@
// network // network
#include <netdevice.h> #include <netdevice.h>
#include <netservice.h> #include <netservice.h>
// KDE Libs
#include <KLocalizedString>
// Qt // Qt
#include <QEventLoop> #include <QEventLoop>
#include <QDebug> #include <QDebug>
...@@ -278,6 +280,7 @@ void NetworkSlave::listDir( const QUrl& url ) ...@@ -278,6 +280,7 @@ void NetworkSlave::listDir( const QUrl& url )
void NetworkSlave::feedEntryAsNetwork( KIO::UDSEntry* entry ) void NetworkSlave::feedEntryAsNetwork( KIO::UDSEntry* entry )
{ {
entry->fastInsert( KIO::UDSEntry::UDS_FILE_TYPE, S_IFDIR ); 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_ICON_NAME, NetworkIconName );
entry->fastInsert( KIO::UDSEntry::UDS_MIME_TYPE, QLatin1String(Mimetypes::NetworkMimetype) ); 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