Examples of QFontDatabase


Examples of com.trolltech.qt.gui.QFontDatabase

    fontSize.activated.connect(this, "fontSizeChanged(String)");
    fontListAction = buttonLayout.addWidget(fontList);
    buttonLayout.toggleFontVisible.triggered.connect(this, "toggleFontListVisible(Boolean)");
    fontSizeAction = buttonLayout.addWidget(fontSize);
    buttonLayout.toggleFontSizeVisible.triggered.connect(this, "toggleFontSizeVisible(Boolean)");
    QFontDatabase fonts = new QFontDatabase();
    List<String> fontFamilies = fonts.families();
    for (int i = 0; i < fontFamilies.size(); i++) {
      fontList.addItem(fontFamilies.get(i));
      if (i == 0) {
        loadFontSize(fontFamilies.get(i));
      }
View Full Code Here

Examples of com.trolltech.qt.gui.QFontDatabase

    browser.setFocus();
  }

  // Load the font combo box based upon the font selected
  private void loadFontSize(String name) { 
    QFontDatabase db = new QFontDatabase();
    fontSize.clear();
    List<Integer> points = db.pointSizes(name);
    for (int i=0; i<points.size(); i++) {
      fontSize.addItem(points.get(i).toString());
    }
    /*
    fontSize.addItem("x-small");
 
View Full Code Here

Examples of com.trolltech.qt.gui.QFontDatabase

    fontList.setEnabled(value);
    fontSizeList.setEnabled(value);
  }
 
  private void loadFonts() {
    QFontDatabase fonts = new QFontDatabase();
    List<String> fontFamilies = fonts.families();
    for (int i = 0; i < fontFamilies.size(); i++) {
      if (font.equals(""))
        font = fontFamilies.get(i);
      fontList.addItem(fontFamilies.get(i));
      if (i == 0) {
View Full Code Here

Examples of com.trolltech.qt.gui.QFontDatabase

  }
 
  // Load the font combo box based upon the font selected
  private void loadFontSize(String name) { 
    QFontDatabase db = new QFontDatabase();
    fontSizeList.clear();
    List<Integer> points = db.pointSizes(name);
    for (int i=0; i<points.size(); i++) {
      if (fontSize.equals(""))
        fontSize = points.get(i).toString();
      fontSizeList.addItem(points.get(i).toString());
    }
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.