Experimental menu and tests (#139)

* Adds basic tests for window and label

* Adds few test cases for QWidget

* Adds working tests setup

* Adds inital code for menus
This commit is contained in:
Atul R
2019-10-07 19:24:17 +02:00
committed by GitHub
parent 28483e669b
commit 36329a44b3
37 changed files with 5032 additions and 159 deletions
+5
View File
@@ -1,3 +1,8 @@
find_program(CCACHE_PROGRAM ccache)
if(CCACHE_PROGRAM)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}")
endif()
function(AddCommonConfig addonName)
target_compile_definitions(${addonName} PRIVATE
SPDLOG_COMPILED_LIB
+5
View File
@@ -0,0 +1,5 @@
const { QApplication } = require("../../dist");
module.exports = async () => {
global.qApp = QApplication.instance();
qApp.setQuitOnLastWindowClosed(false);
};
+3
View File
@@ -0,0 +1,3 @@
module.exports = async () => {
global.qApp.quit();
};