|
qHexWalker 0.0.1
Hexagonal Grid Pathfinding & Maze Visualization on Interactive Maps
|
Main application class extending QGuiApplication. More...
#include <application.h>
Inheritance diagram for Application:
Collaboration diagram for Application:Public Member Functions | |
| Application (int &argc, char **argv) | |
| Constructs the Application. | |
| auto | getApplicationName () const noexcept |
| Gets the application name. | |
| auto | getApplicationVersion () const noexcept |
| Gets the application version. | |
| auto | getLoggerName () const noexcept |
| Gets the logger name for spdlog. | |
Protected Member Functions | |
| bool | eventFilter (QObject *obj, QEvent *event) override |
| Global event filter for the application. | |
Private Attributes | |
| std::string | loggerName_ |
| Logger name for spdlog. | |
| QString | appName_ |
| Application name. | |
| QString | appVersion_ |
| Application version string. | |
Main application class extending QGuiApplication.
The Application class provides:
Definition at line 39 of file application.h.
| Application::Application | ( | int & | argc, |
| char ** | argv | ||
| ) |
Constructs the Application.
Initializes application metadata from build configuration (config.h) and sets up the event filter.
| argc | Command line argument count. |
| argv | Command line argument values. |
Definition at line 4 of file application.cpp.
References appName_, appVersion_, and loggerName_.
|
overrideprotected |
Global event filter for the application.
Filters all events before they reach their target objects. Can be used for global keyboard shortcuts, logging, etc.
| obj | The object receiving the event. |
| event | The event being processed. |
Definition at line 10 of file application.cpp.
|
inlinenoexcept |
Gets the application name.
Definition at line 56 of file application.h.
References appName_.
Referenced by main().
Here is the caller graph for this function:
|
inlinenoexcept |
Gets the application version.
Definition at line 62 of file application.h.
References appVersion_.
Referenced by main().
Here is the caller graph for this function:
|
inlinenoexcept |
Gets the logger name for spdlog.
Definition at line 68 of file application.h.
References loggerName_.
Referenced by main().
Here is the caller graph for this function:
|
private |
Application name.
Definition at line 85 of file application.h.
Referenced by Application(), and getApplicationName().
|
private |
Application version string.
Definition at line 86 of file application.h.
Referenced by Application(), and getApplicationVersion().
|
private |
Logger name for spdlog.
Definition at line 84 of file application.h.
Referenced by Application(), and getLoggerName().