MCPcopy Create free account
hub / github.com/LeFroid/Viper-Browser / onScriptModified

Method onScriptModified

src/ui/user_scripts/UserScriptEditor.cpp:84–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void UserScriptEditor::onScriptModified(bool changed)
85{
86 if (m_ignoreFindModify)
87 {
88 m_ignoreFindModify = false;
89 ui->scriptEditor->document()->setModified(false);
90 return;
91 }
92
93 m_scriptModified = changed;
94 QString title = windowTitle();
95 if (changed)
96 {
97 if (!title.endsWith(QChar('*')))
98 setWindowTitle(QString("%1*").arg(title));
99 }
100 else if (title.endsWith(QChar('*')))
101 setWindowTitle(title.left(title.size() - 1));
102}
103
104void UserScriptEditor::onTextFindPseudoModify()
105{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected