MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / TruncateString

Function TruncateString

src/pluginlist.cpp:62–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60using namespace MOShared;
61
62static QString TruncateString(const QString& text)
63{
64 QString new_text = text;
65
66 if (new_text.length() > 1024) {
67 new_text.truncate(1024);
68 new_text += "...";
69 }
70
71 return new_text;
72}
73
74PluginList::PluginList(OrganizerCore& organizer)
75 : QAbstractItemModel(&organizer), m_Organizer(organizer), m_FontMetrics(QFont())

Callers 1

tooltipDataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected