Package com.trolltech.qt.gui

Examples of com.trolltech.qt.gui.QGridLayout.addWidget()


    fontLayout.addWidget(new QLabel(tr("Font")),2,1);
    fontLayout.addWidget(fontList,2,2);
   
    // Font Sizes
    fontSizeList = new QComboBox();       
    fontLayout.addWidget(fontSizeList,3,2);
    fontSizeList.activated.connect(this, "fontSizeSelected(String)");
    fontLayout.addWidget(new QLabel(tr("Size")),3,1);
    fontGroup.setLayout(fontLayout);
    fontLayout.setColumnStretch(2, 100);
    toggleFontOverride(Global.overrideDefaultFont());
View Full Code Here


   
    // Font Sizes
    fontSizeList = new QComboBox();       
    fontLayout.addWidget(fontSizeList,3,2);
    fontSizeList.activated.connect(this, "fontSizeSelected(String)");
    fontLayout.addWidget(new QLabel(tr("Size")),3,1);
    fontGroup.setLayout(fontLayout);
    fontLayout.setColumnStretch(2, 100);
    toggleFontOverride(Global.overrideDefaultFont());
    loadFonts();
    loadSettings();
View Full Code Here

    ok.clicked.connect(this, "accept()");
    ok.setEnabled(false);
   
    QPushButton cancel = new QPushButton(tr("Cancel"));
    cancel.clicked.connect(this, "reject()");
    button.addWidget(ok, 1, 1);
    button.addWidget(cancel, 1,2);
    grid.addLayout(button, 3, 1);
    url.textChanged.connect(this, "validateInput()");
   
    setAttribute(Qt.WidgetAttribute.WA_DeleteOnClose);
View Full Code Here

    ok.setEnabled(false);
   
    QPushButton cancel = new QPushButton(tr("Cancel"));
    cancel.clicked.connect(this, "reject()");
    button.addWidget(ok, 1, 1);
    button.addWidget(cancel, 1,2);
    grid.addLayout(button, 3, 1);
    url.textChanged.connect(this, "validateInput()");
   
    setAttribute(Qt.WidgetAttribute.WA_DeleteOnClose);
  }
View Full Code Here

    QGridLayout buttonGrid = new QGridLayout();
    ok = new QPushButton(tr("OK"));
    ok.clicked.connect(this, "okButtonPressed()");
    QPushButton cancel = new QPushButton(tr("Cancel"));
    cancel.clicked.connect(this, "cancelButtonPressed()");
    buttonGrid.addWidget(ok, 3, 1);
    buttonGrid.addWidget(cancel, 3,2);
    grid.addLayout(buttonGrid,3,1);
    vLayout.addLayout(grid);
  }
 
View Full Code Here

    ok = new QPushButton(tr("OK"));
    ok.clicked.connect(this, "okButtonPressed()");
    QPushButton cancel = new QPushButton(tr("Cancel"));
    cancel.clicked.connect(this, "cancelButtonPressed()");
    buttonGrid.addWidget(ok, 3, 1);
    buttonGrid.addWidget(cancel, 3,2);
    grid.addLayout(buttonGrid,3,1);
    vLayout.addLayout(grid);
  }
 
  // The OK button was pressed
View Full Code Here

    useridLayout.addWidget(autoLogin);
    useridLayout.addWidget(synchronizeOnClose);
    useridLayout.addWidget(synchronizeDeletedContents);
   
    QGridLayout proxyLayout = new QGridLayout();
    proxyLayout.addWidget(proxyHostLabel,1,1);
    proxyLayout.addWidget(proxyHost,1,2);
    proxyLayout.addWidget(proxyPortLabel,2,1);
    proxyLayout.addWidget(proxyPort,2,2);
    proxyLayout.addWidget(proxyUseridLabel,3,1);
    proxyLayout.addWidget(proxyUserid,3,2);
View Full Code Here

    useridLayout.addWidget(synchronizeOnClose);
    useridLayout.addWidget(synchronizeDeletedContents);
   
    QGridLayout proxyLayout = new QGridLayout();
    proxyLayout.addWidget(proxyHostLabel,1,1);
    proxyLayout.addWidget(proxyHost,1,2);
    proxyLayout.addWidget(proxyPortLabel,2,1);
    proxyLayout.addWidget(proxyPort,2,2);
    proxyLayout.addWidget(proxyUseridLabel,3,1);
    proxyLayout.addWidget(proxyUserid,3,2);
    proxyLayout.addWidget(proxyPasswordLabel,4,1);
View Full Code Here

    useridLayout.addWidget(synchronizeDeletedContents);
   
    QGridLayout proxyLayout = new QGridLayout();
    proxyLayout.addWidget(proxyHostLabel,1,1);
    proxyLayout.addWidget(proxyHost,1,2);
    proxyLayout.addWidget(proxyPortLabel,2,1);
    proxyLayout.addWidget(proxyPort,2,2);
    proxyLayout.addWidget(proxyUseridLabel,3,1);
    proxyLayout.addWidget(proxyUserid,3,2);
    proxyLayout.addWidget(proxyPasswordLabel,4,1);
    proxyLayout.addWidget(proxyPassword,4,2);
View Full Code Here

   
    QGridLayout proxyLayout = new QGridLayout();
    proxyLayout.addWidget(proxyHostLabel,1,1);
    proxyLayout.addWidget(proxyHost,1,2);
    proxyLayout.addWidget(proxyPortLabel,2,1);
    proxyLayout.addWidget(proxyPort,2,2);
    proxyLayout.addWidget(proxyUseridLabel,3,1);
    proxyLayout.addWidget(proxyUserid,3,2);
    proxyLayout.addWidget(proxyPasswordLabel,4,1);
    proxyLayout.addWidget(proxyPassword,4,2);
       
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.