MCPcopy Create free account
hub / github.com/IJHack/QtPass / applyTextBrowserSettings

Method applyTextBrowserSettings

src/mainwindow.cpp:255–269  ·  view source on GitHub ↗

* @brief MainWindow::config pops up the configuration screen and handles all * inter-window communication */

Source from the content-addressed store, hash-verified

253 * inter-window communication
254 */
255void 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
271void MainWindow::applyWindowFlagsSettings() {
272 if (QtPassSettings::isAlwaysOnTop()) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected