Amelioration de l'interface Fichier > Exporter

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@42 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavierqet
2007-01-20 18:11:42 +00:00
parent 7537202a6a
commit 9a45f81f98
11 changed files with 333 additions and 33 deletions

View File

@@ -62,8 +62,8 @@ QPoint Element::setHotspot(QPoint hs) {
if (dimensions.isNull()) hotspot_coord = QPoint(0, 0);
else {
// les coordonnees indiquees ne doivent pas depasser les dimensions de l'element
int hsx = hs.x() > dimensions.width() ? dimensions.width() : hs.x();
int hsy = hs.y() > dimensions.height() ? dimensions.height() : hs.y();
int hsx = qMin(hs.x(), dimensions.width());
int hsy = qMin(hs.y(), dimensions.height());
hotspot_coord = QPoint(hsx, hsy);
}
return(hotspot_coord);