Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"org_domain": "kitware.com",
"org_name": "Kitware, Inc.",
"app_name": "{{ cookiecutter.project_name }}",
"app_display_name": "{{ cookiecutter.app_name }}",
"bundle_identifier": "{{ cookiecutter.org_domain.split('.') | reverse | join('.') }}.{{ cookiecutter.project_name | lower }}",
"app_version_major": "0",
"app_version_minor": "1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ int SlicerAppMain(int argc, char* argv[])

if (!window.isNull())
{
QString windowTitle = QString("%1 %2").arg(Slicer_MAIN_PROJECT_APPLICATION_NAME).arg(Slicer_MAIN_PROJECT_VERSION_FULL);
QString windowTitle = QString("%1 %2").arg(Slicer_MAIN_PROJECT_APPLICATION_DISPLAY_NAME).arg(Slicer_MAIN_PROJECT_VERSION_FULL);
window->setWindowTitle(windowTitle);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void q{{cookiecutter.app_name}}AppMainWindowPrivate::setupUi(QMainWindow * mainW
//----------------------------------------------------------------------------
QAction* helpAboutSlicerAppAction = new QAction(mainWindow);
helpAboutSlicerAppAction->setObjectName("HelpAbout{{cookiecutter.app_name}}AppAction");
helpAboutSlicerAppAction->setText("About " + app->applicationName());
helpAboutSlicerAppAction->setText(q{{cookiecutter.app_name}}AppMainWindow::tr("About %1").arg(qSlicerApplication::application()->mainApplicationDisplayName()));

//----------------------------------------------------------------------------
// Calling "setupUi()" after adding the actions above allows the call
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
set(APPLICATION_NAME
{{cookiecutter.app_name}}
)
set(APPLICATION_DISPLAY_NAME
"{{cookiecutter.app_display_name}}"
)

set(VERSION_MAJOR
{{cookiecutter.app_version_major}}
Expand Down
Loading