* @brief ClickableTab::SetCustomText - Set custom text for the tab, but store the previous text. * @param newText - The new custom text to set. */
| 94 | * @param newText - The new custom text to set. |
| 95 | */ |
| 96 | void 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. |