Examples of QGraphicsTextItem


Examples of com.trolltech.qt.gui.QGraphicsTextItem

 
 
  public NumberedHighlightedTile(Tile t, TileScene scene, int number){
    super(0, 0, scene.tileSize - 2, scene.tileSize - 2);
    this.scene = scene;
    this.text = new QGraphicsTextItem(Integer.toString(number));
    int x = scene.getDrawnTileX(t) * scene.tileSize;
    int y = scene.getDrawnTileY(t) * scene.tileSize;
    text.setPos(x-4, y);
    if(number < 100){
      text.setFont(font8);     
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.