comparison libgui/src/qt-application.h @ 31613:c6683fcc5c33

allow qt_application ctor to set Qt organization, application, and version * qt-application.h, qt-application.cc (qt_application::qt_application): New constructor that accepts organization and application names and version string. Set values in QtCoreApplication object.
author John W. Eaton <jwe@octave.org>
date Fri, 02 Dec 2022 08:57:06 -0500
parents 796f54d4ddbf
children 431f80aba37a
comparison
equal deleted inserted replaced
31612:351a4c8e92c3 31613:c6683fcc5c33
24 //////////////////////////////////////////////////////////////////////// 24 ////////////////////////////////////////////////////////////////////////
25 25
26 #if ! defined (octave_qt_application_h) 26 #if ! defined (octave_qt_application_h)
27 #define octave_qt_application_h 1 27 #define octave_qt_application_h 1
28 28
29 #include <string>
30
29 #include "octave.h" 31 #include "octave.h"
30 32
31 namespace octave 33 namespace octave
32 { 34 {
33 // Programming Note: This file must not include any Qt headers. Any 35 // Programming Note: This file must not include any Qt headers. Any
42 //! provides the full GUI experience. 44 //! provides the full GUI experience.
43 45
44 class OCTGUI_API qt_application : public application 46 class OCTGUI_API qt_application : public application
45 { 47 {
46 public: 48 public:
49
50 qt_application (const std::string& organization_name,
51 const std::string& application_name,
52 const std::string& application_version,
53 int argc, char **argv);
47 54
48 qt_application (int argc, char **argv); 55 qt_application (int argc, char **argv);
49 56
50 // No copying, at least not yet. 57 // No copying, at least not yet.
51 58