File: fakeqtconfigarguments.cpp

package info (click to toggle)
martchus-cpp-utilities 5.28.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,352 kB
  • sloc: cpp: 12,471; awk: 18; ansic: 12; makefile: 10
file content (25 lines) | stat: -rw-r--r-- 937 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "./fakeqtconfigarguments.h"

namespace CppUtilities {

/*!
 * \class FakeQtConfigArguments
 * \brief The FakeQtConfigArguments class provides arguments for the Qt GUI used when
 *        the application hasn't been built with Qt GUI support.
 * \deprecated Get rid of this and simply don't add arguments for Qt GUI when disabled.
 */

/*!
 * \brief Constructs new fake Qt-config arguments.
 */
FakeQtConfigArguments::FakeQtConfigArguments()
    : m_qtWidgetsGuiArg(
          "qt-widgets-gui", 'g', "shows a Qt widgets based graphical user interface (the application has not been built with Qt widgets support)")
    , m_qtQuickGuiArg(
          "qt-quick-gui", 'q', "shows a Qt quick based graphical user interface (the application has not been built with Qt quick support)")
{
    m_qtWidgetsGuiArg.setFlags(Argument::Flags::Operation);
    m_qtQuickGuiArg.setFlags(Argument::Flags::Operation);
}

} // namespace CppUtilities