diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-02-02 13:06:11 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-02-02 13:06:11 -0600 |
commit | 4ea6710b85d7e2672a764e775cf4a69099e9cd99 (patch) | |
tree | 745af0b5933befd127b0d4adf47b6e3678bd267b /modules | |
parent | e4bd3f07716f523a53de1840da19417a08c0c1f1 (diff) | |
download | tde-cmake-4ea6710b85d7e2672a764e775cf4a69099e9cd99.tar.gz tde-cmake-4ea6710b85d7e2672a764e775cf4a69099e9cd99.zip |
Add qwizard to kwizard autoconversion from Autotools to CMake
Diffstat (limited to 'modules')
-rw-r--r-- | modules/tde_uic.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
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 <ntqwizard.h>" "#include <kwizard.h>" _ui_h_content "${_ui_h_content}" ) + string( REGEX REPLACE "#include <qwizard.h>" "#include <kwizard.h>" _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 <kdialog.h>\n#include <klocale.h>\n\n${_ui_cpp_content}" ) endif( ) |