mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-02 18:00:53 +01:00
QET is open without diagram, and tool bar are disabled.
Default properties is now a static method of the propertie class himself git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3400 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
*/
|
||||
#include "titleblockproperties.h"
|
||||
#include "qet.h"
|
||||
#include "qetapp.h"
|
||||
|
||||
/**
|
||||
Constructeur. Initialise un objet TitleBlockProperties avec tous les champs
|
||||
@@ -130,6 +131,19 @@ void TitleBlockProperties::fromSettings(QSettings &settings, const QString &pref
|
||||
context.fromSettings(settings, prefix + "properties");
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief TitleBlockProperties::defaultProperties
|
||||
* Return the default properties stored in the setting file
|
||||
*/
|
||||
TitleBlockProperties TitleBlockProperties::defaultProperties() {
|
||||
QSettings &settings = QETApp::settings();
|
||||
|
||||
TitleBlockProperties def;
|
||||
def.fromSettings(settings, "diagrameditor/default");
|
||||
|
||||
return(def);
|
||||
}
|
||||
|
||||
/**
|
||||
@return La date a utiliser
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user