summaryrefslogtreecommitdiffstats
path: root/src/common/global/global.h
blob: 72dab0ec2c1a0d5d1be19e232e3af490a7d3dd65 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/***************************************************************************
 *   Copyright (C) 2006 Nicolas Hadacek <hadacek@kde.org>                  *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 ***************************************************************************/
#ifndef GLOBAL_H
#define GLOBAL_H

#include <qglobal.h>

#if QT_VERSION<0x040000
#  include <qapplication.h>
#  include <qvaluelist.h>
#  include <qvaluevector.h>
#  include <qmemarray.h>
#  include "common/common/qflags.h"
#  define qMax QMAX
#  define qMin QMIN
#  include <qurl.h>
#  define Q3Url QUrl
#  include <qguardedptr.h>
#else
#  include <qcoreapplication.h>
#  include <Qt3Support/Q3ValueList>
#  define QValueList Q3ValueList
#  include <Qt3Support/Q3ValueVector>
#  define QValueVector Q3ValueVector
#  include <Qt3Support/Q3MemArray>
#  define QMemArray Q3MemArray
#  define qHeapSort qSort
#  include <Qt3Support/Q3Url>
#  include <Qt3Support/Q3MimeSourceFactory>
#  define QMimeSourceFactory Q3MimeSourceFactory
#  include <qpointer.h>
#  define QGuardedPtr QPointer
#endif

#if defined(NO_KDE)
#  include "qt_config.h"
#  include "common/nokde/nokde_kurl.h"
#  include "common/nokde/nokde_klocale.h"
#  include "common/nokde/nokde_kaboutdata.h"
#  include "common/nokde/nokde_kcmdlineargs.h"
#else
#  include "config.h"
#  include <kapplication.h>
#  include <klocale.h>
#  include <kaboutdata.h>
#  include <kcmdlineargs.h>
#  include <ktempfile.h>
#  include <kconfigbackend.h>
#endif

#if defined(Q_OS_WIN)
#  include <windows.h>
#endif

#endif