~diegoturcios/+junk/RandyQT

« back to all changes in this revision

Viewing changes to print.cpp

  • Committer: Diego
  • Date: 2010-10-01 13:30:56 UTC
  • Revision ID: diegoturcios@ubuntu.com-20101001133056-ojvajnma9ynul9v2
Trying .deb

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "print.h"
 
2
#include "ui_print.h"
 
3
 
 
4
Print::Print(QWidget *parent) :
 
5
    QDialog(parent),
 
6
    ui(new Ui::Print)
 
7
{
 
8
    QPrinter::QPrinter(QPrinter::ScreenResolution);
 
9
 
 
10
    ui->setupUi(this);
 
11
}
 
12
 
 
13
Print::~Print()
 
14
{
 
15
    delete ui;
 
16
}
 
17
 
 
18
void Print::changeEvent(QEvent *e)
 
19
{
 
20
    QDialog::changeEvent(e);
 
21
    switch (e->type()) {
 
22
    case QEvent::LanguageChange:
 
23
        ui->retranslateUi(this);
 
24
        break;
 
25
    default:
 
26
        break;
 
27
    }
 
28
}