Package com.trolltech.qt.core

Examples of com.trolltech.qt.core.QRectF.top()


      rect.setBottomRight(p);
      if (!rect.contains(newPos)) {
        // Keep the item inside the scene rect.
        newPos.setX(Math.min(rect.right(), Math.max(newPos.x(), rect
            .left())));
        newPos.setY(Math.min(rect.bottom(), Math.max(newPos.y(), rect
            .top())));
      }
      long x = Math.round(newPos.x() / scene.tileSize)
          * scene.tileSize;
      long y = Math.round(newPos.y() / scene.tileSize)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.