MCPcopy Create free account
hub / github.com/D4stiny/PeaceMaker / SetCustomText

Method SetCustomText

PeaceMakerGUI/ClickableTab.cpp:96–104  ·  view source on GitHub ↗

* @brief ClickableTab::SetCustomText - Set custom text for the tab, but store the previous text. * @param newText - The new custom text to set. */

Source from the content-addressed store, hash-verified

94 * @param newText - The new custom text to set.
95 */
96void ClickableTab::SetCustomText(QString newText)
97{
98 if(customText == false)
99 {
100 oldText = this->text();
101 this->setText(newText);
102 customText = true;
103 }
104}
105
106/**
107 * @brief ClickableTab::mousePressEvent notifies the main window of a tab being clicked.

Callers 1

AddAlertSummaryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected