-
Notifications
You must be signed in to change notification settings - Fork 0
/
AlbumEasy.h
executable file
·49 lines (40 loc) · 2.12 KB
/
AlbumEasy.h
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
/* ------------------------------------------------------------------------------------------
* AlbumEasy.h
* ------------------------------------------------------------------------------------------
* DESCRIPTION: Application wide include file
* ------------------------------------------------------------------------------------------
* COPYRIGHT: Copyright (c) 2005-2013
* Clive Levinson <[email protected]>
* Bundu Technology Ltd.
* ------------------------------------------------------------------------------------------
* LICENCE: AlbumEasy 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 3 of the License, or (at your option)
* any later version.
* ------------------------------------------------------------------------------------------
* AUTHORS: Clive Levinson
* ------------------------------------------------------------------------------------------
* REVISIONS: Date Version Who Comment
*
* 2011/04/26 3.0 cl First QT Version
* ------------------------------------------------------------------------------------------ */
#ifndef _ALBUM_EASY_H
#define _ALBUM_EASY_H
#include <QtWidgets>
#define TR(s) QObject::tr(s)
#ifndef QT_NO_DEBUG
/* ------------------------------------------------------------------------------------------
Convenience function for outputting debug messages to the console
------------------------------------------------------------------------------------------
Example Usage: DEBUGS(tr("Count:%1 Index:%2 Val:%3").arg(total).arg(idx).arg(val));
------------------------------------------------------------------------------------------ */
#define DEBUGS(s) DEBUGSX(s,__FILE__,__LINE__)
inline void DEBUGSX(QString s,const char *f, int l)
{
QString dbgs=QString("%1[%2]: %3").arg(f).arg(l).arg(s);
qDebug("%s",dbgs.toLatin1().data());
}
#else
#define DEBUGS(s)
#endif //QT_NO_DEBUG
#endif //_ALBUM_EASY_H