BibleTime
Classes | Macros
btaboutdialog.cpp File Reference
#include "btaboutdialog.h"
#include <QApplication>
#include <QColor>
#include <QDebug>
#include <QDesktopServices>
#include <QDialogButtonBox>
#include <QDir>
#include <QFile>
#include <QFont>
#include <QFontMetrics>
#include <QHBoxLayout>
#include <QIODevice>
#include <QLabel>
#include <QPalette>
#include <QPlainTextEdit>
#include <QTabWidget>
#include <QTextBrowser>
#include <QTextStream>
#include <QtGlobal>
#include <QUrl>
#include <QVBoxLayout>
#include <QWidget>
#include <utility>
#include "../util/btconnect.h"
#include "../util/bticons.h"
#include "../util/directory.h"
#include "messagedialog.h"
#include <swversion.h>

Go to the source code of this file.

Classes

class  BtAboutDialog::LicenseTab
 

Macros

#define MAKE_CONTR(c, n, r)
 
#define MAKE_CONTR2(c, n, r, r2)
 
#define MAKE_HTML(t, x)   "<html><head>" MAKE_STYLE(t) "</head><body>" + (x) + "</body></html>"
 
#define MAKE_LINK(c, u, t)   "<a href=\"" u "\">"; (c) += (t); (c) += "</a>"
 
#define MAKE_LINK_STATIC(u, t)   "<a href=\"" u "\">" t "</a>"
 
#define MAKE_STYLE(t)
 

Macro Definition Documentation

◆ MAKE_CONTR

#define MAKE_CONTR (   c,
  n,
  r 
)
Value:
"<li>" n " (";\
(c) += (r);\
(c) += ")</li>"
QStringList r(content.left(bodyIndex))

Definition at line 59 of file btaboutdialog.cpp.

◆ MAKE_CONTR2

#define MAKE_CONTR2 (   c,
  n,
  r,
  r2 
)
Value:
"<li>" n " (";\
(c) += (r);\
(c) += ", ";\
(c) += (r2);\
(c) += ")</li>"

Definition at line 62 of file btaboutdialog.cpp.

◆ MAKE_HTML

#define MAKE_HTML (   t,
 
)    "<html><head>" MAKE_STYLE(t) "</head><body>" + (x) + "</body></html>"

Definition at line 56 of file btaboutdialog.cpp.

◆ MAKE_LINK

#define MAKE_LINK (   c,
  u,
 
)    "<a href=\"" u "\">"; (c) += (t); (c) += "</a>"

Definition at line 57 of file btaboutdialog.cpp.

◆ MAKE_LINK_STATIC

#define MAKE_LINK_STATIC (   u,
 
)    "<a href=\"" u "\">" t "</a>"

Definition at line 58 of file btaboutdialog.cpp.

◆ MAKE_STYLE

#define MAKE_STYLE (   t)
Value:
"<style type=\"text/css\">"\
"body{"\
"background-color:" + (t)->palette().color(QPalette::Window).name() + ";"\
"color:" + (t)->palette().color(QPalette::WindowText).name() +\
"}"\
"h3{font-weight:bold;text-align:center}"\
"a{text-decoration:underline}"\
"a:link{color:" + (t)->palette().color(QPalette::Link).name() + "}"\
"a:visited{color:" + (t)->palette().color(QPalette::LinkVisited).name() + "}"\
"</style>"

Definition at line 46 of file btaboutdialog.cpp.