File: aboutqtadsdialog.cc

package info (click to toggle)
qtads 2.1.6-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 16,156 kB
  • ctags: 18,767
  • sloc: cpp: 133,078; ansic: 26,048; xml: 18; makefile: 11
file content (48 lines) | stat: -rw-r--r-- 1,957 bytes parent folder | download | duplicates (3)
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
#include "aboutqtadsdialog.h"
#include "ui_aboutqtadsdialog.h"

#include "globals.h"
#include "trd.h"
#include "vmvsn.h"
#include "htmlver.h"


AboutQtadsDialog::AboutQtadsDialog(QWidget *parent)
    : QDialog(parent, Qt::WindowTitleHint | Qt::WindowSystemMenuHint),
      ui(new Ui::AboutQtadsDialog)
{
    ui->setupUi(this);

#ifdef Q_OS_MAC
    // On Mac OS X, the dialog should not have any buttons.
    ui->buttonBox->setStandardButtons(QDialogButtonBox::NoButton);
#else
    // Show a "Close" button everywhere else.
    ui->buttonBox->setStandardButtons(QDialogButtonBox::Close);
#endif

    // Construct a string holding all version info.
    QString str;
    str += QString::fromLatin1("<table border=\"0\" width=\"100%\"><tr><td>");
    str += tr("QTads version:") + QString::fromLatin1("</td><td>") + QString::fromLatin1(QTADS_VERSION)
           + QString::fromLatin1("<br></td></tr><tr><td>")
           + tr("HTML TADS version:") + QString::fromLatin1("</td><td>\t")
           + QString::fromLatin1(HTMLTADS_VERSION) + QString::fromLatin1("</td></tr><tr><td>")
           + tr("TADS 2 virtual machine:") + QString::fromLatin1("</td><td>\t")
           + QString::fromLatin1(TADS_RUNTIME_VERSION) + QString::fromLatin1("</td></tr><tr><td>")
           + tr("TADS 3 virtual machine:") + QString::fromLatin1("</td><td>\t")
           + QString::fromLatin1(T3VM_VSN_STRING) + QString::fromLatin1(" (")
           + QString::fromLatin1(T3VM_IDENTIFICATION)
           + QString::fromLatin1(")<br></td></tr><tr><td>")
           + tr("Qt build version:") + QString::fromLatin1("</td><td>") + QString::fromLatin1(QT_VERSION_STR)
           + QString::fromLatin1("</td></tr><tr><td>")
           + tr("Qt runtime version:") + QString::fromLatin1("</td><td>") + QString::fromLatin1(qVersion())
           + QString::fromLatin1("</td></tr></table>");
    ui->versionInfoLabel->setText(str);
}


AboutQtadsDialog::~AboutQtadsDialog()
{
    delete ui;
}