1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

don't use DesignMetrics

This commit is contained in:
krepa098 2015-01-02 20:35:28 +01:00
parent b76e9a295d
commit 1945bcc1f6
2 changed files with 2 additions and 2 deletions

View File

@ -202,8 +202,6 @@ void Text::ensureIntegrity()
if(!doc)
{
doc = new CustomTextDocument();
doc->setUndoRedoEnabled(false);
doc->setUseDesignMetrics(true);
doc->setDefaultFont(defFont);
if(!elide)

View File

@ -25,6 +25,8 @@ CustomTextDocument::CustomTextDocument(QObject *parent)
: QTextDocument(parent)
{
setDefaultStyleSheet(Style::getStylesheet(":ui/chatArea/innerStyle.css"));
setUndoRedoEnabled(false);
setUseDesignMetrics(false);
}
QVariant CustomTextDocument::loadResource(int type, const QUrl &name)