summaryrefslogtreecommitdiffstats
path: root/src/mxcl.library.h
blob: feb71ef5a7c8811fa6fa6cad4513a175f7ea0e02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// (C) 2005 Max Howell ([email protected])
// 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