19 #include <QPushButton>
20 #include <itkConfigure.h>
22 #include <vtkConfigure.h>
23 #include <vtkVersionMacros.h>
31 QString itkVersion = QString(
"%1.%2.%3").arg(ITK_VERSION_MAJOR).arg(ITK_VERSION_MINOR).arg(ITK_VERSION_PATCH);
32 QString vtkVersion = QString(
"%1.%2.%3").arg(VTK_MAJOR_VERSION).arg(VTK_MINOR_VERSION).arg(VTK_BUILD_VERSION);
34 QString revisionText = QString(
"Revision: %1").arg(
MITK_REVISION);
39 m_GUI.m_RevisionLabel->setText(revisionText);
40 m_GUI.m_ToolkitVersionsLabel->setText(QString(
"ITK %1, VTK %2, Qt %3").arg(itkVersion, vtkVersion, QT_VERSION_STR));
42 QPushButton *btnModules =
new QPushButton(QIcon(
":/QtWidgetsExt/ModuleView.png"),
"Modules");
43 m_GUI.m_ButtonBox->addButton(btnModules, QDialogButtonBox::ActionRole);
45 connect(btnModules, SIGNAL(clicked()),
this, SLOT(
ShowModules()));
46 connect(m_GUI.m_ButtonBox, SIGNAL(rejected()),
this, SLOT(reject()));
61 return m_GUI.m_AboutLabel->text();
66 return m_GUI.m_CaptionLabel->text();
71 return m_GUI.m_RevisionLabel->text();
76 m_GUI.m_AboutLabel->setText(text);
81 m_GUI.m_CaptionLabel->setText(text);
86 m_GUI.m_RevisionLabel->setText(text);
void SetRevisionText(const QString &text)
QmitkAboutDialog(QWidget *parent=nullptr, Qt::WindowFlags f=Qt::CustomizeWindowHint|Qt::WindowCloseButtonHint)
void SetCaptionText(const QString &text)
#define MITK_REVISION_DESC
virtual ~QmitkAboutDialog()
QString GetRevisionText() const
QString GetAboutText() const
void SetAboutText(const QString &text)
QString GetCaptionText() const