Examples of QHBoxLayout


Examples of com.trolltech.qt.gui.QHBoxLayout

    openBookList.itemSelectionChanged.connect(this, "openBookSelected()");
    closedBookList.itemSelectionChanged.connect(this, "closedBookSelected()");
    leftButton.clicked.connect(this, "toOpenList()");
    rightButton.clicked.connect(this, "toClosedList()");
   
    QHBoxLayout buttonLayout = new QHBoxLayout();
    buttonLayout.addStretch(1);
    buttonLayout.addWidget(okButton);
    buttonLayout.addWidget(cancelButton);
    setWindowTitle(tr("Open/Close Notebooks"));
   
    QHBoxLayout upperLayout = new QHBoxLayout();
    upperLayout.addLayout(openLayout);
    upperLayout.addLayout(middleLayout);
    upperLayout.addLayout(closeLayout);
   
    QVBoxLayout mainLayout = new QVBoxLayout();
    mainLayout.addLayout(upperLayout);
    //mainLayout.addStretch(1);
    mainLayout.addSpacing(1);
View Full Code Here

Examples of com.trolltech.qt.gui.QHBoxLayout

    setWindowIcon(new QIcon(iconPath+"notebook-green.png"));
    QVBoxLayout main = new QVBoxLayout();
    setLayout(main);
    titleCombo = new QComboBox(this);
   
    QHBoxLayout comboLayout = new QHBoxLayout();
    comboLayout.addWidget(new QLabel(tr("Matching Notes:")));
    comboLayout.addWidget(titleCombo);
    comboLayout.addStretch(100);
   
    main.addLayout(comboLayout);
       
    conn = c;
    browser = new BrowserWindow(conn);
    main.addWidget(browser);
    browser.titleLabel.setVisible(false);
    browser.notebookBox.setVisible(false);
    browser.hideButtons();
    browser.tagEdit.setVisible(false);
    browser.tagLabel.setVisible(false);
   
    QHBoxLayout buttonLayout = new QHBoxLayout();
    buttonLayout.addStretch(100);
    ok = new QPushButton(tr("OK"));
    ok.clicked.connect(this, "okPressed()");
   
    cancel = new QPushButton(tr("Cancel"));
    cancel.clicked.connect(this, "cancelPressed()");
   
    buttonLayout.addWidget(ok);
    buttonLayout.addWidget(cancel);
    main.addLayout(buttonLayout);
   
    browser.getBrowser().setContextMenuPolicy(ContextMenuPolicy.NoContextMenu);
    logger = l;
   
View Full Code Here

Examples of com.trolltech.qt.gui.QHBoxLayout

    //attribGrid.addWidget(createIncomingEmailField(attrib.getIncomingEmailAddress()+"@"+server), 1,2);
    //attribGroup.setLayout(attribGrid);
    //grid.addWidget(attribGroup, 2,1);

   
    QHBoxLayout buttonLayout = new QHBoxLayout();
    ok = new QPushButton("OK");
    ok.clicked.connect(this, "okPushed()");
    buttonLayout.addStretch();
    buttonLayout.addWidget(ok);
    buttonLayout.addStretch();
    grid.addLayout(buttonLayout,3,1);
  }
View Full Code Here

Examples of com.trolltech.qt.gui.QHBoxLayout

    serverCombo.addItem("www.evernote.com");
    serverCombo.addItem("sandbox.evernote.com");
    disableUploads = new QCheckBox();
    disableUploads.setText(tr("Disable uploads to server"));

    QHBoxLayout serverLayout = new QHBoxLayout();
    serverLayout.addWidget(serverLabel);
    serverLayout.addWidget(serverCombo);
    serverLayout.addWidget(disableUploads);
    serverGroup.setLayout(serverLayout);

    QLabel messageLevelLabel = new QLabel(tr("Message Level"));
    messageCombo = new QComboBox();
    messageCombo.addItem(tr("Low"),"Low");
    messageCombo.addItem(tr("Medium"),"Medium");
    messageCombo.addItem(tr("High"),"High");
    messageCombo.addItem(tr("Extreme"),"Extreme");
   
    QHBoxLayout messageLayout = new QHBoxLayout();
    messageLayout.addWidget(messageLevelLabel);
    messageLayout.addWidget(messageCombo);
    messageLayout.setStretch(1, 100);
   
   
    QHBoxLayout databaseCacheLayout = new QHBoxLayout();
    databaseCache = new QSpinBox();
    databaseCacheLayout.addWidget(new QLabel(tr("Database Cache (MB) - Requires restart")));
    databaseCache.setMinimum(4);
    databaseCache.setMaximum(128);
    databaseCache.setValue(new Integer(Global.databaseCache)/1024);
    databaseCacheLayout.addWidget(databaseCache);
    databaseCacheLayout.setStretch(1, 100);
   
    QVBoxLayout mainLayout = new QVBoxLayout();
    mainLayout.addLayout(messageLayout);
    mainLayout.addLayout(databaseCacheLayout);
   
    QHBoxLayout thumbnailLayout = new QHBoxLayout();
    QLabel thumbnailLabel = new QLabel(tr("Enable Thumbnails (experimental)"));
    thumbnailLayout.addWidget(thumbnailLabel);
    enableThumbnails = new QCheckBox(this);
    thumbnailLayout.addWidget(enableThumbnails);
    mainLayout.addLayout(thumbnailLayout);
   
    mainLayout.addWidget(serverGroup);
   
    QGroupBox crlfGroup = new QGroupBox(tr("Carriage Return Fix"));
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.