From 4ea6710b85d7e2672a764e775cf4a69099e9cd99 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 2 Feb 2012 13:06:11 -0600 Subject: [PATCH] Add qwizard to kwizard autoconversion from Autotools to CMake --- modules/tde_uic.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/tde_uic.cmake b/modules/tde_uic.cmake index e0278c6..7e6210e 100644 --- a/modules/tde_uic.cmake +++ b/modules/tde_uic.cmake @@ -35,6 +35,10 @@ execute_process( COMMAND ${UIC_EXECUTABLE} if( _ui_h_content ) string( REGEX REPLACE "#ifndef " "#ifndef UI_" _ui_h_content "${_ui_h_content}" ) string( REGEX REPLACE "#define " "#define UI_" _ui_h_content "${_ui_h_content}" ) + string( REGEX REPLACE "public TQWizard" "public KWizard" _ui_h_content "${_ui_h_content}" ) + string( REGEX REPLACE "public QWizard" "public KWizard" _ui_h_content "${_ui_h_content}" ) + string( REGEX REPLACE "#include " "#include " _ui_h_content "${_ui_h_content}" ) + string( REGEX REPLACE "#include " "#include " _ui_h_content "${_ui_h_content}" ) file( WRITE ${_ui_basename}.h "${_ui_h_content}" ) endif( ) @@ -48,5 +52,7 @@ execute_process( COMMAND ${UIC_EXECUTABLE} if( _ui_cpp_content ) string( REGEX REPLACE "tr2i18n\\(\"\"\\)" "QString::null" _ui_cpp_content "${_ui_cpp_content}" ) string( REGEX REPLACE "tr2i18n\\(\"\", \"\"\\)" "QString::null" _ui_cpp_content "${_ui_cpp_content}" ) + string( REGEX REPLACE ": TQWizard\\(" ": KWizard(" _ui_cpp_content "${_ui_cpp_content}" ) + string( REGEX REPLACE ": QWizard\\(" ": KWizard(" _ui_cpp_content "${_ui_cpp_content}" ) file( WRITE ${_ui_basename}.cpp "#include \n#include \n\n${_ui_cpp_content}" ) endif( )