[qet] [724] Corrections mineures.

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 724
Author:   xavier
Date:     2009-07-30 22:48:19 +0200 (Thu, 30 Jul 2009)

Log Message:
-----------
Corrections mineures.

Modified Paths:
--------------
    trunk/sources/borderinset.cpp
    trunk/sources/qettabbar.h


Modified: trunk/sources/borderinset.cpp
===================================================================
--- trunk/sources/borderinset.cpp	2009-07-30 20:20:17 UTC (rev 723)
+++ trunk/sources/borderinset.cpp	2009-07-30 20:48:19 UTC (rev 724)
@@ -446,8 +446,8 @@
 	}
 	
 	QPointF relative_pos = pos - grid_rect.topLeft();
-	int row_number    = ceil(relative_pos.x() / columnsWidth());
-	int column_number = ceil(relative_pos.y() / rowsHeight());
+	int row_number    = int(ceil(relative_pos.x() / columnsWidth()));
+	int column_number = int(ceil(relative_pos.y() / rowsHeight()));
 	
 	QString letter = "A";
 	for (int i = 1 ; i < column_number ; ++ i) {

Modified: trunk/sources/qettabbar.h
===================================================================
--- trunk/sources/qettabbar.h	2009-07-30 20:20:17 UTC (rev 723)
+++ trunk/sources/qettabbar.h	2009-07-30 20:48:19 UTC (rev 724)
@@ -1,4 +1,5 @@
-/*	Copyright 2006-2009 Xavier Guerrin
+/*
+	Copyright 2006-2009 Xavier Guerrin
 	This file is part of QElectroTech.
 	
 	QElectroTech is free software: you can redistribute it and/or modify


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/