Subversion Repositories OpenInventory

Rev

Rev 165 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 165 Rev 167
Line 6... Line 6...
6
IconForm::IconForm(QWidget *parent) :
6
IconForm::IconForm(QWidget *parent) :
7
    QWidget(parent),
7
    QWidget(parent),
8
    ui(new Ui::IconForm)
8
    ui(new Ui::IconForm)
9
{
9
{
10
    ui->setupUi(this);
10
    ui->setupUi(this);
-
 
11
    IconForm::fdataIsChanged = false;
11
}
12
}
12
13
13
IconForm::~IconForm()
14
IconForm::~IconForm()
14
{
15
{
15
    delete ui;
16
    delete ui;
Line 36... Line 37...
36
37
37
    if (fileName.isEmpty()) return;
38
    if (fileName.isEmpty()) return;
38
    Pixmap.load(fileName);
39
    Pixmap.load(fileName);
39
40
40
    ui->label->setPixmap(Pixmap);
41
    ui->label->setPixmap(Pixmap);
-
 
42
    IconForm::fdataIsChanged = true;
41
//    IconForm::close();
43
//    IconForm::close();
42
}
44
}
43
45
44
46
45
void IconForm::setPixmap (QPixmap newPixmap){
47
void IconForm::setPixmap (QPixmap newPixmap){
Line 50... Line 52...
50
52
51
53
52
QPixmap IconForm::pixmap (){
54
QPixmap IconForm::pixmap (){
53
    return Pixmap;
55
    return Pixmap;
54
}
56
}
-
 
57
-
 
58
-
 
59
bool IconForm::dataIsChanged(){
-
 
60
    return IconForm::fdataIsChanged;
-
 
61
}
-
 
62
-
 
63
-
 
64
// void IconForm::clearPixmap(){}