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:
parent
b76e9a295d
commit
1945bcc1f6
|
@ -202,8 +202,6 @@ void Text::ensureIntegrity()
|
|||
if(!doc)
|
||||
{
|
||||
doc = new CustomTextDocument();
|
||||
doc->setUndoRedoEnabled(false);
|
||||
doc->setUseDesignMetrics(true);
|
||||
doc->setDefaultFont(defFont);
|
||||
|
||||
if(!elide)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user