2015-04-22 18:36:40 +02:00
|
|
|
#ifndef APPLICATIONUTILITIES_FAKEQTCONFIGARGUMENTS_H
|
|
|
|
#define APPLICATIONUTILITIES_FAKEQTCONFIGARGUMENTS_H
|
|
|
|
|
2015-09-06 20:19:09 +02:00
|
|
|
#include "./argumentparser.h"
|
2015-04-22 18:36:40 +02:00
|
|
|
|
|
|
|
namespace ApplicationUtilities {
|
|
|
|
|
|
|
|
class LIB_EXPORT FakeQtConfigArguments
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
FakeQtConfigArguments();
|
|
|
|
|
|
|
|
Argument &qtWidgetsGuiArg();
|
|
|
|
Argument &qtQuickGuiArg();
|
|
|
|
|
|
|
|
bool areQtGuiArgsPresent() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
Argument m_qtWidgetsGuiArg;
|
|
|
|
Argument m_qtQuickGuiArg;
|
|
|
|
};
|
|
|
|
|
2016-06-10 22:59:22 +02:00
|
|
|
/*!
|
|
|
|
* \brief Returns the argument to show the Qt-widgets-based GUI.
|
|
|
|
*/
|
2015-04-22 18:36:40 +02:00
|
|
|
inline Argument &FakeQtConfigArguments::qtWidgetsGuiArg()
|
|
|
|
{
|
|
|
|
return m_qtWidgetsGuiArg;
|
|
|
|
}
|
|
|
|
|
2016-06-10 22:59:22 +02:00
|
|
|
/*!
|
|
|
|
* \brief Returns the argument to show the Qt-quick-based GUI.
|
|
|
|
*/
|
2015-04-22 18:36:40 +02:00
|
|
|
inline Argument &FakeQtConfigArguments::qtQuickGuiArg()
|
|
|
|
{
|
|
|
|
return m_qtQuickGuiArg;
|
|
|
|
}
|
|
|
|
|
2016-06-10 22:59:22 +02:00
|
|
|
/*!
|
|
|
|
* \brief Returns whether at least one of the arguments is present.
|
|
|
|
*/
|
2015-04-22 18:36:40 +02:00
|
|
|
inline bool FakeQtConfigArguments::areQtGuiArgsPresent() const
|
|
|
|
{
|
|
|
|
return m_qtWidgetsGuiArg.isPresent() || m_qtQuickGuiArg.isPresent();
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace ApplicationUtilities
|
|
|
|
|
|
|
|
#ifndef QT_CONFIG_ARGUMENTS
|
2016-06-10 22:59:22 +02:00
|
|
|
# define QT_CONFIG_ARGUMENTS ApplicationUtilities::FakeQtConfigArguments
|
2015-04-22 18:36:40 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // APPLICATIONUTILITIES_FAKEQTCONFIGARGUMENTS_H
|