mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-23 02:10:52 +01:00
Ajout des classes BorderProperties et BorderPropertiesWidget
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@371 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#include "conductorpropertieswidget.h"
|
||||
#include "configdialog.h"
|
||||
#include "recentfiles.h"
|
||||
|
||||
/**
|
||||
constructeur
|
||||
@param files Liste de fichiers a ouvrir
|
||||
@@ -1090,3 +1091,24 @@ InsetProperties QETDiagramEditor::defaultInsetProperties() {
|
||||
|
||||
return(def);
|
||||
}
|
||||
|
||||
/**
|
||||
@return Les dimensions par defaut d'un schema
|
||||
*/
|
||||
BorderProperties QETDiagramEditor::defaultBorderProperties() {
|
||||
// accede a la configuration de l'application
|
||||
QSettings &settings = QETApp::settings();
|
||||
|
||||
BorderProperties def;
|
||||
def.columns_count = settings.value("diagrameditor/defaultcols", 15).toInt();
|
||||
def.columns_width = qRound(settings.value("diagrameditor/defaultcolsize", 50.0).toDouble());
|
||||
def.columns_header_height = 20.0;
|
||||
def.display_columns = true;
|
||||
|
||||
def.rows_count = settings.value("diagrameditor/defaultrows", 6).toInt();
|
||||
def.rows_height = qRound(settings.value("diagrameditor/defaultrowsize", 80.0).toDouble());
|
||||
def.rows_header_width = 20.0;
|
||||
def.display_rows = true;
|
||||
|
||||
return(def);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user