Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
adfb9e89
Commit
adfb9e89
authored
6 years ago
by
Studer Gabriel
Browse files
Options
Downloads
Patches
Plain Diff
Check whether there is already an instance of the gosty app around
parent
2376ae54
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/gui/src/gosty_app.cc
+4
-0
4 additions, 0 deletions
modules/gui/src/gosty_app.cc
modules/gui/src/gosty_app.hh
+5
-0
5 additions, 0 deletions
modules/gui/src/gosty_app.hh
with
9 additions
and
0 deletions
modules/gui/src/gosty_app.cc
+
4
−
0
View file @
adfb9e89
...
...
@@ -66,6 +66,10 @@ GostyApp* GostyApp::Instance() {
return
GostyApp
::
app_
;
}
bool
GostyApp
::
ValidInstance
()
{
return
GostyApp
::
app_
!=
NULL
;
}
void
GostyApp
::
SetAppTitle
(
const
QString
&
app_title
)
{
main_
->
setWindowTitle
(
app_title
);
...
...
This diff is collapsed.
Click to expand it.
modules/gui/src/gosty_app.hh
+
5
−
0
View file @
adfb9e89
...
...
@@ -157,6 +157,11 @@ public:
/// \return the GostyApp instance
static
GostyApp
*
Instance
();
/// \brief
/// GostyApp is implemented as Singleton. This returns whether there is
/// already a valid instance around
static
bool
ValidInstance
();
/// \brief This methods sets the Title of this Application
/// \param app_title Title that will be displayed in the title bar
void
SetAppTitle
(
const
QString
&
app_title
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment