-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: develop
Are you sure you want to change the base?
Conversation
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"; |
There was a problem hiding this comment.
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"), |
There was a problem hiding this comment.
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); | ||
}); |
There was a problem hiding this comment.
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(); });
There was a problem hiding this 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()); |
There was a problem hiding this comment.
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()); });
closes #94