diff options
Diffstat (limited to 'src/mxcl.library.h')
-rw-r--r-- | src/mxcl.library.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/mxcl.library.h b/src/mxcl.library.h new file mode 100644 index 0000000..feb71ef --- /dev/null +++ b/src/mxcl.library.h @@ -0,0 +1,28 @@ +// (C) 2005 Max Howell (max.howell@methylblue.com) +// See COPYING file for licensing information + +#ifndef MXCL_LIBRARY_H +#define MXCL_LIBRARY_H + + +namespace mxcl +{ + /// Allocate on stack, wait cursor will be shown during existance + struct WaitCursor + { + WaitCursor(); + ~WaitCursor(); + }; +} + + +/// almost always negates the need to #include <klocale.h> in implementations +#include <qstring.h> +QString i18n( const char *text ); + + +/// very useful for QStringLists +#define foreach( x ) \ + for( QStringList::ConstIterator it = x.constBegin(), end = x.constEnd(); it != end; ++it ) + +#endif |