예제 #1
0
  private void penWidth() {

    Integer newWidth =
        QInputDialog.getInteger(
            this, tr("Scribble"), tr("Select pen width:"), scribbleArea.penWidth(), 1, 50, 1);
    if (newWidth != null) scribbleArea.setPenWidth(newWidth.intValue());
  }
예제 #2
0
  void changeHeight() {
    Integer newHeight =
        QInputDialog.getInteger(
            this,
            tr("Change table height"),
            tr("Input the number of rows required (1-20):"),
            tableWidget.rowCount(),
            1,
            20,
            1);

    if (newHeight != null) tableWidget.setRowCount(newHeight);
  }
예제 #3
0
  void changeWidth() {
    Integer newWidth =
        QInputDialog.getInteger(
            this,
            tr("Change table width"),
            tr("Input the number of columns required (1-20):"),
            tableWidget.columnCount(),
            1,
            20,
            1);

    if (newWidth != null) tableWidget.setColumnCount(newWidth);
  }