-
Notifications
You must be signed in to change notification settings - Fork 324
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Daniel Maleike <daniel.maleike@stryker.com>
@@ -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); |
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.
I wouldn't use m_
, since this is not a member variable.
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.
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.
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.
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
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.
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.
No description provided.