[X2Go-Commits] [x2goclient] 01/02: helpdialog.cpp: change to monospaced font.
git-admin at x2go.org
git-admin at x2go.org
Thu Apr 23 16:20:23 CEST 2015
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository x2goclient.
commit 47c59d8824523a147566912c1cd1c6e4e03a5287
Author: Mihai Moldovan <ionic at ionic.de>
Date: Thu Apr 23 16:18:13 2015 +0200
helpdialog.cpp: change to monospaced font.
---
debian/changelog | 1 +
src/helpdialog.cpp | 7 +++++--
src/helpdialog.h | 1 +
3 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 0488684..72886f3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -295,6 +295,7 @@ x2goclient (4.0.4.0-0x2go1) UNRELEASED; urgency=low
string.
- help.cpp: use new git_changelog_extract_commit_sha() helper while
building the help prelude.
+ - helpdialog.cpp: change to monospaced font.
[ Fernando Pedemonte ]
* New upstream release (4.0.4.0):
diff --git a/src/helpdialog.cpp b/src/helpdialog.cpp
index a30b2eb..cc6a5b0 100644
--- a/src/helpdialog.cpp
+++ b/src/helpdialog.cpp
@@ -1,6 +1,7 @@
/**************************************************************************
* Copyright (C) 2005-2015 by Oleksandr Shneyder *
* o.shneyder at phoca-gmbh.de *
+* Copyright (C) 2015 by Mihai Moldovan <ionic at ionic.de> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
@@ -24,8 +25,10 @@ HelpDialog::HelpDialog(QWidget* parent): QDialog(parent)
void HelpDialog::setText(QString text)
{
- text.replace("\t\t\t","\t");
- text.replace("\t\t","\t");
+ QFont font ("monospace");
+ font.setStyleHint (QFont::Monospace);
+ plainTextEdit->setFont (font);
+
plainTextEdit->setTabStopWidth(30);
plainTextEdit->setWordWrapMode(QTextOption::NoWrap);
plainTextEdit->setPlainText(text);
diff --git a/src/helpdialog.h b/src/helpdialog.h
index 9a91f73..4bc8be5 100644
--- a/src/helpdialog.h
+++ b/src/helpdialog.h
@@ -1,6 +1,7 @@
/**************************************************************************
* Copyright (C) 2005-2015 by Oleksandr Shneyder *
* o.shneyder at phoca-gmbh.de *
+* Copyright (C) 2015 by Mihai Moldovan *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
--
Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git
More information about the x2go-commits
mailing list