I've added this line of code into a header file:
Qt Code:
  1. //! new type declaration
  2. typedef QMap<QString, QVariant> settingsType;
To copy to clipboard, switch view to plain text mode 
and I get following errors:
Qt Code:
  1. mingw32-make
  2. mingw32-make -f Makefile.Debug
  3. mingw32-make[1]: Entering directory `C:/Documents and Settings/markofr/workspace/SettingsEditor'
  4. c:\Qt\4.3.3\bin\uic.exe cmainwindow.ui -o ui_cmainwindow.h
  5. g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.3.3\include\QtCore" -I"..\..\..\..\Qt\4.3.3\include\QtCore" -I"..\..\..\..\Qt\4.3.3\include\QtGui" -I"..\..\..\..\Qt\4.3.3\include\QtGui" -I"..\..\..\..\Qt\4.3.3\include" -I"c:\Qt\4.3.3\include\ActiveQt" -I"debug" -I"." -I"..\..\..\..\Qt\4.3.3\mkspecs\win32-g++" -o debug\CApplicationSettings.o CApplicationSettings.cpp
  6. In file included from CApplicationSettings.h:11,
  7. from CApplicationSettings.cpp:1:
  8. setttingdefs.h:10: error: expected identifier before "typedef"
  9. setttingdefs.h:10: error: expected init-declarator before "settingsType"
  10. setttingdefs.h:10: error: expected `,' or `;' before "settingsType"
  11. In file included from CApplicationSettings.cpp:1:
  12. CApplicationSettings.h:28: error: `settingsType' does not name a type
  13. mingw32-make[1]: *** [debug/CApplicationSettings.o] Error 1
  14. mingw32-make[1]: Leaving directory `C:/Documents and Settings/markofr/workspace/SettingsEditor'
  15. mingw32-make: *** [debug] Error 2
To copy to clipboard, switch view to plain text mode 

Why typedef is not working??!!