mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-02-15 22:49:57 +01:00
Add new entry if the main QElectroTech dialog conf, to set a defaut font and rotation of independent text item.
Revamp some GUI git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5767 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -19,7 +19,10 @@
|
||||
#include "qet.h"
|
||||
#include "diagram.h"
|
||||
#include "diagramcommands.h"
|
||||
#include "qetapp.h"
|
||||
|
||||
#include <QDomElement>
|
||||
#include <QSettings>
|
||||
|
||||
/**
|
||||
Constructeur
|
||||
@@ -27,7 +30,11 @@
|
||||
*/
|
||||
IndependentTextItem::IndependentTextItem() :
|
||||
DiagramTextItem(nullptr)
|
||||
{}
|
||||
{
|
||||
setFont(QETApp::indiTextsItemFont());
|
||||
QSettings settings;
|
||||
setRotation(settings.value("diagrameditor/independent_text_rotation", 0).toInt());
|
||||
}
|
||||
|
||||
/**
|
||||
Constructeur
|
||||
|
||||
Reference in New Issue
Block a user