Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/94 mail ui #95

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

Feature/94 mail ui #95

wants to merge 3 commits into from

Conversation

leogeier
Copy link
Contributor

closes #94

@leogeier leogeier requested review from hesiod and lukaswagner June 15, 2018 23:42
@leogeier
Copy link
Contributor Author

Cancel button doesn't work

@julisa99
Copy link
Contributor

Cancel button doesn't work

Right, doesn't work for me either (Windows x64). Please fix that. There are also many lines of code that are commented out or are debugging output. Please remove them.

@@ -70,6 +71,17 @@ MainWindow::MainWindow(QWidget *parent, bool useCam, QString outputPath,
this->showDia();

initializeSidebar();

QObject::connect(&m_mailDialog, &MailDialog::enteredMail, [=](QString text){
std::cout << "sdfsdf\n";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove

}
// bool ok;
m_mailDialog.exec();
// QString text = QInputDialog::getText(this, tr("Schneckenpost"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is that commented out and not removed?

});
QObject::connect(&m_buttonOk, &QPushButton::clicked, [=](){
this->done(1);
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To close the dialog, please add
QObject::connect(&m_buttonCancel, &QPushButton::clicked, this, [=]() { this->close(); });

Copy link
Contributor

@julisa99 julisa99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do the small adjustments.

, m_layout() {

QObject::connect(&m_buttonOk, &QPushButton::clicked, [=](){
emit enteredMail(this->m_input.text());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For user experience: First close the mail window and then send the mail?
QObject::connect(&m_buttonOk, &QPushButton::clicked, [=](){ this->close(); emit enteredMail(this->m_input.text()); });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

custom mail dialog
2 participants