MCPcopy Create free account
hub / github.com/blizzard4591/openMittsu / getFileExtension

Method getFileExtension

src/widgets/chat/ContactFileChatWidgetItem.cpp:108–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106 }
107
108 QString ContactFileChatWidgetItem::getFileExtension() const {
109 if (!m_fileName.isEmpty()) {
110 int pos = m_fileName.lastIndexOf('.');
111 if (pos != -1) {
112 return m_fileName.mid(pos + 1);
113 }
114 }
115
116 return QStringLiteral("gif");
117 }
118
119 QString ContactFileChatWidgetItem::getDefaultFilename() const {
120 return m_fileName;

Callers

nothing calls this directly

Calls 1

isEmptyMethod · 0.80

Tested by

no test coverage detected