mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-08 06:42:34 +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:
@@ -16,6 +16,7 @@
|
||||
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "conductorproperties.h"
|
||||
#include "qetapp.h"
|
||||
|
||||
/**
|
||||
Constructeur par defaut
|
||||
@@ -361,6 +362,19 @@ QString ConductorProperties::typeToString(ConductorType t) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief ConductorProperties::defaultProperties
|
||||
* @return the default properties stored in the setting file
|
||||
*/
|
||||
ConductorProperties ConductorProperties::defaultProperties() {
|
||||
QSettings &settings = QETApp::settings();
|
||||
|
||||
ConductorProperties def;
|
||||
def.fromSettings(settings, "diagrameditor/defaultconductor");
|
||||
|
||||
return(def);
|
||||
}
|
||||
|
||||
/**
|
||||
@param other l'autre ensemble de proprietes avec lequel il faut effectuer la comparaison
|
||||
@return true si les deux ensembles de proprietes sont identiques, false sinon
|
||||
|
||||
Reference in New Issue
Block a user