]> vaikene.ee Git - evaf/blobdiff - src/libs/Common/iapp.h
Added iApp::exec() function, which enters the Qt event loop and runs the application.
[evaf] / src / libs / Common / iapp.h
index 098abafde39410119d5b86f61af2cb7ea74876d7..31390e371c35e3565eab991b21f12f750b3b6e82 100644 (file)
@@ -129,6 +129,15 @@ public:
      */
     virtual QString const xmlFileName() const = 0;
 
+    /**
+     * Enters the main event loop of the Qt application.
+     * @return Value returned by the Qt application
+     *
+     * This function enters the event loop of the Qt application. Use this function to start event handling
+     * instead of calling QCoreApplication::exec() or QApplication::exec() functions directly.
+     */
+    virtual int exec() = 0;
+
     /**
      * Requests the eVaf application to restart.
      *