mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Suppression d'avertissements a la compilation
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@369 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -318,7 +318,7 @@ void BorderInset::setRowsHeaderWidth(const qreal &new_rhw) {
|
|||||||
*/
|
*/
|
||||||
void BorderInset::setDiagramHeight(const qreal &height) {
|
void BorderInset::setDiagramHeight(const qreal &height) {
|
||||||
// taille des lignes a utiliser = rows_height
|
// taille des lignes a utiliser = rows_height
|
||||||
setNbRows(ceil(height / rows_height));
|
setNbRows(qRound(ceil(height / rows_height)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ NewDiagramPage::NewDiagramPage(QWidget *parent) : ConfigPage(parent) {
|
|||||||
// recupere les dimensions du schema
|
// recupere les dimensions du schema
|
||||||
int columns_count_value = settings.value("diagrameditor/defaultcols", 15).toInt();
|
int columns_count_value = settings.value("diagrameditor/defaultcols", 15).toInt();
|
||||||
int columns_width_value = qRound(settings.value("diagrameditor/defaultcolsize", 50.0).toDouble());
|
int columns_width_value = qRound(settings.value("diagrameditor/defaultcolsize", 50.0).toDouble());
|
||||||
int rows_count_value = settings.value("diagrameditor/defaultrows", 6).toDouble();
|
int rows_count_value = settings.value("diagrameditor/defaultrows", 6).toInt();
|
||||||
int rows_height_value = qRound(settings.value("diagrameditor/defaultrowsize", 80.0).toDouble());
|
int rows_height_value = qRound(settings.value("diagrameditor/defaultrowsize", 80.0).toDouble());
|
||||||
|
|
||||||
QVBoxLayout *vlayout1 = new QVBoxLayout();
|
QVBoxLayout *vlayout1 = new QVBoxLayout();
|
||||||
@@ -60,7 +60,7 @@ NewDiagramPage::NewDiagramPage(QWidget *parent) : ConfigPage(parent) {
|
|||||||
columns_count -> setValue(columns_count_value);
|
columns_count -> setValue(columns_count_value);
|
||||||
|
|
||||||
columns_width = new QSpinBox(diagram_size_box);
|
columns_width = new QSpinBox(diagram_size_box);
|
||||||
columns_width -> setMinimum(BorderInset::minColumnsWidth());
|
columns_width -> setMinimum(qRound(BorderInset::minColumnsWidth()));
|
||||||
columns_width -> setSingleStep(10);
|
columns_width -> setSingleStep(10);
|
||||||
columns_width -> setValue(columns_width_value);
|
columns_width -> setValue(columns_width_value);
|
||||||
columns_width -> setPrefix(tr("\327"));
|
columns_width -> setPrefix(tr("\327"));
|
||||||
@@ -73,7 +73,7 @@ NewDiagramPage::NewDiagramPage(QWidget *parent) : ConfigPage(parent) {
|
|||||||
rows_count -> setValue(rows_count_value);
|
rows_count -> setValue(rows_count_value);
|
||||||
|
|
||||||
rows_height = new QSpinBox(diagram_size_box);
|
rows_height = new QSpinBox(diagram_size_box);
|
||||||
rows_height -> setMinimum(BorderInset::minRowsHeight());
|
rows_height -> setMinimum(qRound(BorderInset::minRowsHeight()));
|
||||||
rows_height -> setSingleStep(10);
|
rows_height -> setSingleStep(10);
|
||||||
rows_height -> setValue(rows_height_value);
|
rows_height -> setValue(rows_height_value);
|
||||||
rows_height -> setPrefix(tr("\327"));
|
rows_height -> setPrefix(tr("\327"));
|
||||||
|
|||||||
@@ -571,7 +571,7 @@ void DiagramView::dialogEditInfos() {
|
|||||||
columns_count -> setValue(columns_count_value);
|
columns_count -> setValue(columns_count_value);
|
||||||
|
|
||||||
QSpinBox *columns_width = new QSpinBox(diagram_size_box);
|
QSpinBox *columns_width = new QSpinBox(diagram_size_box);
|
||||||
columns_width -> setMinimum(BorderInset::minColumnsWidth());
|
columns_width -> setMinimum(qRound(BorderInset::minColumnsWidth()));
|
||||||
columns_width -> setSingleStep(10);
|
columns_width -> setSingleStep(10);
|
||||||
columns_width -> setValue(columns_width_value);
|
columns_width -> setValue(columns_width_value);
|
||||||
columns_width -> setPrefix(tr("\327"));
|
columns_width -> setPrefix(tr("\327"));
|
||||||
@@ -584,7 +584,7 @@ void DiagramView::dialogEditInfos() {
|
|||||||
rows_count -> setValue(rows_count_value);
|
rows_count -> setValue(rows_count_value);
|
||||||
|
|
||||||
QSpinBox *rows_height = new QSpinBox(diagram_size_box);
|
QSpinBox *rows_height = new QSpinBox(diagram_size_box);
|
||||||
rows_height -> setMinimum(BorderInset::minRowsHeight());
|
rows_height -> setMinimum(qRound(BorderInset::minRowsHeight()));
|
||||||
rows_height -> setSingleStep(10);
|
rows_height -> setSingleStep(10);
|
||||||
rows_height -> setValue(rows_height_value);
|
rows_height -> setValue(rows_height_value);
|
||||||
rows_height -> setPrefix(tr("\327"));
|
rows_height -> setPrefix(tr("\327"));
|
||||||
|
|||||||
Reference in New Issue
Block a user