~mateo-salta/nitroshare/nitroshare

« back to all changes in this revision

Viewing changes to src/dialogs/CAboutDialog.cpp

  • Committer: Nathan Osman
  • Date: 2012-06-30 18:21:50 UTC
  • Revision ID: admin@quickmediasolutions.com-20120630182150-avavhqs8km192915
New share boxes are now properly positioned when added to the desktop.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
   along with this program.  If not, see <http://www.gnu.org/licenses/>. */
16
16
 
17
17
#include <dialogs/CAboutDialog.h>
 
18
#include <util/definitions.h>
18
19
#include "ui_CAboutDialog.h"
19
20
 
20
21
CAboutDialog::CAboutDialog()
22
23
{
23
24
    ui->setupUi(this);
24
25
 
 
26
    ui->Version->setText(tr("Version %1 - <i>built %2 %3</i>").arg(Definitions::Version)
 
27
                                                              .arg(__DATE__)
 
28
                                                              .arg(__TIME__));
 
29
 
25
30
    /* Gather the technical information. */
26
31
    GatherTechInfo();
27
32
}
34
39
void CAboutDialog::GatherTechInfo()
35
40
{
36
41
    ui->TechData->insertRow(0);
 
42
    ui->TechData->setItem(0, 0, new QTableWidgetItem("Debug build"));
 
43
#ifdef QT_DEBUG
 
44
    ui->TechData->setItem(0, 1, new QTableWidgetItem("Yes"));
 
45
#else
 
46
    ui->TechData->setItem(0, 1, new QTableWidgetItem("No"));
 
47
#endif
 
48
 
 
49
    ui->TechData->insertRow(0);
37
50
    ui->TechData->setItem(0, 0, new QTableWidgetItem("Qt version"));
38
51
    ui->TechData->setItem(0, 1, new QTableWidgetItem(qVersion()));
39
52
}