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

Details dialog close button #243

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

maleike
Copy link
Contributor

@maleike maleike commented Oct 29, 2019

No description provided.

@@ -37,7 +37,7 @@ QmitkInfoDialog::QmitkInfoDialog(const QList<mitk::DataNode::Pointer>& nodes, QW
m_SearchButton = new QPushButton("Search (F3)", this);
m_SearchButton->installEventFilter(this);
m_TextBrowser = new QTextBrowser(this);
QPushButton* cancelButton = new QPushButton("Cancel", this);
QPushButton* m_CloseButton = new QPushButton("Close", this);
Copy link
Contributor

Choose a reason for hiding this comment

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

I wouldn't use m_, since this is not a member variable.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think using an .ui file would be the right way to go. Also typical buttons like Cancel, and so on may be already available through the Dialog API of Qt instead of creating own buttons.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wouldn't use m_, since this is not a member variable.

Oups, you are right, I did not see that. Yes, the prefix m_ is wrong

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think using an .ui file would be the right way to go. Also typical buttons like Cancel, and so on may be already available through the Dialog API of Qt instead of creating own buttons.

You are right, .ui files would be an option. However, I did not want to rewrite the widget but only fix a misleading label.

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.

None yet

3 participants