mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
Correction du bug d'affichage du menu du systray lors de son premier affichage
Correction de 3 avertissements a la compilation dans qetapp.cpp git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@188 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
parent
3ee3ca48e5
commit
21cc2c67a6
@ -489,8 +489,8 @@ void DiagramView::dialogEditInfos() {
|
||||
|
||||
// recupere les dimensions du schema
|
||||
int columns_count_value = scene -> border_and_inset.nbColumn();
|
||||
int columns_width_value = scene -> border_and_inset.columnsWidth();
|
||||
int columns_height_value = scene -> border_and_inset.columnsHeight();
|
||||
int columns_width_value = qRound(scene -> border_and_inset.columnsWidth());
|
||||
int columns_height_value = qRound(scene -> border_and_inset.columnsHeight());
|
||||
|
||||
// construit le dialogue
|
||||
QDialog popup;
|
||||
@ -516,7 +516,7 @@ void DiagramView::dialogEditInfos() {
|
||||
QLabel *ds2 = new QLabel(tr("Hauteur :"));
|
||||
|
||||
QSpinBox *columns_height = new QSpinBox(diagram_size_box);
|
||||
columns_height -> setRange(scene -> border_and_inset.minColumnsHeight(), 10000);
|
||||
columns_height -> setRange(qRound(scene -> border_and_inset.minColumnsHeight()), 10000);
|
||||
columns_height -> setSingleStep(80);
|
||||
columns_height -> setValue(columns_height_value);
|
||||
|
||||
|
@ -79,6 +79,7 @@ QETApp::QETApp(int &argc, char **argv) : QApplication(argc, argv) {
|
||||
if (QFileInfo(argument).exists()) files << argument;
|
||||
}
|
||||
new QETDiagramEditor(files);
|
||||
buildSystemTrayMenu();
|
||||
}
|
||||
|
||||
/// Destructeur
|
||||
|
Loading…
x
Reference in New Issue
Block a user