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:
@@ -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
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
const { QApplication } = require("../../dist");
|
||||
module.exports = async () => {
|
||||
global.qApp = QApplication.instance();
|
||||
qApp.setQuitOnLastWindowClosed(false);
|
||||
};
|
||||
@@ -0,0 +1,3 @@
|
||||
module.exports = async () => {
|
||||
global.qApp.quit();
|
||||
};
|
||||
Reference in New Issue
Block a user