* @brief MainWindow::config pops up the configuration screen and handles all * inter-window communication */
| 253 | * inter-window communication |
| 254 | */ |
| 255 | void MainWindow::applyTextBrowserSettings() { |
| 256 | if (QtPassSettings::isUseMonospace()) { |
| 257 | QFont monospace("Monospace"); |
| 258 | monospace.setStyleHint(QFont::Monospace); |
| 259 | ui->textBrowser->setFont(monospace); |
| 260 | } else { |
| 261 | ui->textBrowser->setFont(QFont()); |
| 262 | } |
| 263 | |
| 264 | if (QtPassSettings::isNoLineWrapping()) { |
| 265 | ui->textBrowser->setLineWrapMode(QTextBrowser::NoWrap); |
| 266 | } else { |
| 267 | ui->textBrowser->setLineWrapMode(QTextBrowser::WidgetWidth); |
| 268 | } |
| 269 | } |
| 270 | |
| 271 | void MainWindow::applyWindowFlagsSettings() { |
| 272 | if (QtPassSettings::isAlwaysOnTop()) { |
nothing calls this directly
no outgoing calls
no test coverage detected