MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / Icon

Method Icon

Plugins/FileTransfer/RemoteFileSystemModel.cpp:259–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259QIcon CRemoteFileSystem::Icon()
260{
261 if(GetType() & TYPE::DRIVE)
262 return QIcon::fromTheme("drive-harddisk");
263 if(GetType() & TYPE::DIR)
264 return QIcon::fromTheme("folder-remote");
265 if(GetType() & TYPE::FILE || GetType() & TYPE::SPECIAL)
266 return QApplication::style()->standardIcon(QStyle::SP_FileIcon);
267 if(GetType() & TYPE::SYMLINK)
268 return QIcon::fromTheme("emblem-symbolic-link");
269 return QIcon();
270}
271
272CRemoteFileSystem::TYPES CRemoteFileSystem::GetType()
273{

Callers 1

dataMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected