Qt Utilities  5.10.0
Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models
qtconfigarguments.h
Go to the documentation of this file.
1 #ifndef APPLICATION_UTILITIES_QTCONFIGARGUMENTS_H
2 #define APPLICATION_UTILITIES_QTCONFIGARGUMENTS_H
3 
4 #include "../global.h"
5 
6 #include <c++utilities/application/argumentparser.h>
7 
9 
11 public:
13 
14  Argument &qtWidgetsGuiArg();
15  Argument &qtQuickGuiArg();
16  Argument &languageArg();
17 
18  bool areQtGuiArgsPresent() const;
19  void applySettings(bool preventApplyingDefaultFont = false) const;
20 
21 private:
22  Argument m_qtWidgetsGuiArg;
23  Argument m_qtQuickGuiArg;
24  Argument m_lngArg;
25  Argument m_qmlDebuggerArg;
26  Argument m_styleArg;
27  Argument m_iconThemeArg;
28  Argument m_fontArg;
29  Argument m_libraryPathsArg;
30  Argument m_platformThemeArg;
31 };
32 
37 {
38  return m_qtWidgetsGuiArg;
39 }
40 
45 {
46  return m_qtQuickGuiArg;
47 }
48 
53 {
54  return m_lngArg;
55 }
56 
61 {
62  return m_qtWidgetsGuiArg.isPresent() || m_qtQuickGuiArg.isPresent();
63 }
64 } // namespace ApplicationUtilities
65 
66 #endif // APPLICATION_UTILITIES_QTCONFIGARGUMENTS_H
67 
68 #ifdef QT_CONFIG_ARGUMENTS
69 #undef QT_CONFIG_ARGUMENTS
70 #endif
71 #define QT_CONFIG_ARGUMENTS ApplicationUtilities::QtConfigArguments
Argument & qtWidgetsGuiArg()
Returns the argument for the Qt Widgets GUI.
Argument & languageArg()
Returns the language argument.
#define QT_UTILITIES_EXPORT
Marks the symbol to be exported by the qtutilities library.
Argument & qtQuickGuiArg()
Returns the argument for the Qt Quick GUI.
bool areQtGuiArgsPresent() const
Returns whether at least one of the GUI arguments is present.