Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- labelAdditionalText = new QLabel("This will reset all the counters (including the start date)");
- labelAdditionalText->setObjectName(QStringLiteral("labelAdditionalText"));
- labelUsername = new QLabel("Username :");
- labelUsername->setObjectName(QStringLiteral("labelUsername"));
- lineEditUsername = LayoutUtils::createTouchLineEdit(WIDGET_KEYBOARD, EDITMODE_STANDARD);
- lineEditUsername->setObjectName(QStringLiteral("lineEditUsername"));
- lineEditUsername->setMaxLength(50);
- labelPassword = new QLabel("Password :");
- labelPassword->setObjectName(QStringLiteral("labelPassword"));
- lineEditPassword = LayoutUtils::createTouchLineEdit(WIDGET_KEYBOARD, EDITMODE_STANDARD);
- lineEditPassword->setObjectName(QStringLiteral("lineEditPassword"));
- lineEditPassword->setMaxLength(50);
- lineEditPassword->setEchoMode(TouchLineEdit::Password);
- pushButtonOk = new QPushButton("OK");
- pushButtonOk->setObjectName(QStringLiteral("pushButtonOk"));
- pushButtonOk->setAutoDefault(false);
- pushButtonCancel = new QPushButton("Cancel");
- pushButtonCancel->setObjectName(QStringLiteral("pushButtonCancel"));
- pushButtonCancel->setAutoDefault(false);
- QGridLayout* pxAdditionTextLayout = new QGridLayout();
- pxAdditionTextLayout->addWidget(labelAdditionalText);
- //pxAdditionTextLayout->
- QGridLayout * pxLineEditLayout = new QGridLayout();
- pxLineEditLayout->addWidget(labelUsername, 0, 0);
- pxLineEditLayout->addWidget(lineEditUsername, 0, 1);
- pxLineEditLayout->addWidget(labelPassword, 1, 0);
- pxLineEditLayout->addWidget(lineEditPassword, 1, 1);
- QGridLayout * pxButtonLayout = new QGridLayout();
- pxButtonLayout->addWidget(pushButtonOk, 0, 0);
- pxButtonLayout->addWidget(pushButtonCancel, 0, 1);
- QGridLayout * pxGridLayout = new QGridLayout();
- pxGridLayout->addLayout(pxAdditionTextLayout, 0, 0);
- pxGridLayout->addLayout(pxLineEditLayout, 1, 0);
- pxGridLayout->addLayout(pxButtonLayout, 2, 0, Qt::AlignRight);
- setLayout(pxGridLayout);
Add Comment
Please, Sign In to add comment