Package com.trolltech.qt.gui

Examples of com.trolltech.qt.gui.QLineEdit


    setLayout(grid);
    QGridLayout passwordGrid = new QGridLayout();
    QGridLayout buttonGrid = new QGridLayout();
   
   
    longitude = new QLineEdit();
    QDoubleValidator longVal = new QDoubleValidator(-180.0,180.0,4,longitude);
    longVal.setNotation(Notation.StandardNotation);
    longitude.setValidator(longVal);
   
    latitude = new QLineEdit();
    QDoubleValidator latVal = new QDoubleValidator(-90.0,90.0,4,latitude);
    latVal.setNotation(Notation.StandardNotation);
    latitude.setValidator(latVal);
   
    altitude = new QLineEdit();
    QDoubleValidator altVal = new QDoubleValidator(-9999.0,9999.0,4,altitude);
    altVal.setNotation(Notation.StandardNotation);
    altitude.setValidator(altVal);

   
View Full Code Here


    QGridLayout msgGrid = new QGridLayout();
    QGridLayout button = new QGridLayout();
    setLayout(grid);
   
   
    hint = new QLineEdit("");
    password = new QLineEdit("");
    password.setEchoMode(QLineEdit.EchoMode.Password);
    password2 = new QLineEdit("");
    password2.setEchoMode(QLineEdit.EchoMode.Password);
   
   
    input.addWidget(new QLabel(tr("Password")), 1,1);
    input.addWidget(password, 1, 2);
View Full Code Here

   
    tagList = new QListWidget();
    tagList.setSortingEnabled(true);
    tagList.setSelectionMode(QAbstractItemView.SelectionMode.MultiSelection);
   
    newTag = new QLineEdit();
    newTag.textChanged.connect(this, "newTagTextChanged()");
    newTagButton = new QPushButton(tr("Add"));
    newTagButton.setEnabled(false);
    newTagButton.clicked.connect(this, "addTag()");
   
View Full Code Here

    setLayout(grid);
    QGridLayout suggestionGrid = new QGridLayout();
    QGridLayout buttonGrid = new QGridLayout();
   
    currentWord = new QLabel(misspelledWord);
    replacementWord = new QLineEdit();
    suggestions = new QListWidget();
   
    replacementWord.textChanged.connect(this, "validateInput()");
    suggestions.itemSelectionChanged.connect(this, "replacementChosen()");
   
View Full Code Here

    QGridLayout button = new QGridLayout();
    setLayout(grid);
   
   
    hint = new QLabel("");
    password = new QLineEdit("");
    password.setEchoMode(QLineEdit.EchoMode.Password);
    password2 = new QLineEdit("");
    password2.setEchoMode(QLineEdit.EchoMode.Password);
   
   
    input.addWidget(new QLabel(tr("Password")), 1,1);
    input.addWidget(password, 1, 2);
View Full Code Here

    setWindowIcon(new QIcon(iconPath+"notebook-green.png"));
    QGridLayout grid = new QGridLayout();
    setLayout(grid);
   
    QGridLayout textLayout = new QGridLayout();
    notebook = new QLineEdit();
    notebookLabel = new QLabel(tr("Notebook Name"));
    textLayout.addWidget(notebookLabel, 1,1);
    textLayout.addWidget(notebook, 1, 2);
    textLayout.setContentsMargins(10, 10,-10, -10);
    grid.addLayout(textLayout,1,1);
View Full Code Here

    QGridLayout button = new QGridLayout();
    setLayout(grid);
    insertHyperlink = insert;
   
   
    url = new QLineEdit("");
   
    input.addWidget(new QLabel(tr("Url")), 1,1);
    input.addWidget(url, 1, 2);
    input.setContentsMargins(10, 10,  -10, -10);
    grid.addLayout(input, 1,1);
View Full Code Here

    QGridLayout grid = new QGridLayout();
    setWindowIcon(new QIcon(iconPath+"tag.png"));
    setLayout(grid);
   
    QGridLayout textGrid = new QGridLayout();
    tag = new QLineEdit();
    textGrid.addWidget(new QLabel(tr("Tag Name")), 1,1);
    textGrid.addWidget(tag, 1, 2);
   
    textGrid.setContentsMargins(10, 10,-10, -10);
    grid.addLayout(textGrid,1,1);
View Full Code Here

    indexImageRecognition.setChecked(Global.indexImageRecognition());
   
    automaticWildcard = new QCheckBox(tr("Automatically Wildcard All Searches"));
    automaticWildcard.setChecked(Global.automaticWildcardSearches());
   
    specialStrip = new QLineEdit();
    specialStrip.setText(Global.getSpecialIndexCharacters());
   
    QVBoxLayout attachmentLayout = new QVBoxLayout();
    attachmentLayout.addWidget(indexBody);
    attachmentLayout.addWidget(indexTitle);
    attachmentLayout.addWidget(indexAttachmentsLocally);
    attachmentLayout.addWidget(indexImageRecognition);
    attachmentLayout.addWidget(automaticWildcard);
   
    QHBoxLayout specialCharLayout = new QHBoxLayout();
    specialCharLayout.addWidget(new QLabel(tr("Special Word Characters")));
    specialCharLayout.addWidget(specialStrip);
    attachmentLayout.addLayout(specialCharLayout);
    attachmentGroup.setLayout(attachmentLayout);

    // Index sleep interval
    QGroupBox sleepGroup = new QGroupBox(tr("Index Interval"));
    QLabel sleepLabel = new QLabel(tr("Seconds between looking for unindexed notes"));
    sleepSpinner = new QSpinBox();
    sleepSpinner.setRange(30,600);
    sleepSpinner.setSingleStep(1);
    sleepSpinner.setValue(Global.getIndexThreadSleepInterval());

    QHBoxLayout sleepLayout = new QHBoxLayout();
    sleepLayout.addWidget(sleepLabel);
    sleepLayout.addWidget(sleepSpinner);
    sleepGroup.setLayout(sleepLayout);
   
    // Regular Expressions for word parsing
    QGroupBox regexGroup = new QGroupBox(tr("Word Parse"));
    QLabel regexLabel = new QLabel(tr("Regular Expression"));
    regexEdit = new QLineEdit();
    regexEdit.setText(Global.getWordRegex());

    QHBoxLayout regexLayout = new QHBoxLayout();
    regexLayout.addWidget(regexLabel);
    regexLayout.addWidget(regexEdit);   
View Full Code Here

    QGridLayout passwordGrid = new QGridLayout();
    QGridLayout buttonGrid = new QGridLayout();
   
    String passwordValue = "";
   
    password = new QLineEdit(passwordValue);
    password.setEchoMode(QLineEdit.EchoMode.Password);
   
    password.textChanged.connect(this, "validateInput()");
   
    passwordGrid.addWidget(new QLabel(tr("Password")), 2,1);
View Full Code Here

TOP

Related Classes of com.trolltech.qt.gui.QLineEdit

Copyright © 2018 www.massapicom. 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.