Subversion Repositories svn1-original

Rev

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

Rev 320 Rev 321
Line 17... Line 17...
17
    ui->setupUi(this);
17
    ui->setupUi(this);
18
 
18
 
19
    QPushButton * doneButton = new QPushButton("Save and Close");
19
    QPushButton * doneButton = new QPushButton("Save and Close");
20
    ui->buttonBox->addButton(doneButton,QDialogButtonBox::ActionRole);
20
    ui->buttonBox->addButton(doneButton,QDialogButtonBox::ActionRole);
21
 
21
 
-
 
22
    QPushButton * clearButton = new QPushButton("Clear");
-
 
23
    ui->buttonBox2->addButton(clearButton,QDialogButtonBox::ActionRole);
-
 
24
 
-
 
25
    QPushButton * delButton = new QPushButton("Delete");
-
 
26
    ui->buttonBox2->addButton(delButton,QDialogButtonBox::ActionRole);
-
 
27
 
-
 
28
    QPushButton * timeButton = new QPushButton("TimeStamp");
-
 
29
    ui->buttonBox2->addButton(timeButton,QDialogButtonBox::ActionRole);
-
 
30
 
22
    connect(ui->buttonBox,SIGNAL(accepted()), this, SLOT(save()));
31
    connect(ui->buttonBox,SIGNAL(accepted()), this, SLOT(save()));
23
    connect(ui->buttonBox,SIGNAL(rejected()), this, SLOT(reject()));
32
    connect(ui->buttonBox,SIGNAL(rejected()), this, SLOT(reject()));
24
    connect(doneButton,SIGNAL(clicked()), this, SLOT(saveAndClose()));
33
    connect(doneButton,SIGNAL(clicked()), this, SLOT(saveAndClose()));
25
 
34
 
26
    //  Attempt to open the file name specified
35
    //  Attempt to open the file name specified
Line 40... Line 49...
40
    }
49
    }
41
 
50
 
42
    QTextStream in(&file);
51
    QTextStream in(&file);
43
    ui->textEdit->setPlainText(in.readAll());
52
    ui->textEdit->setPlainText(in.readAll());
44
    file.close();
53
    file.close();
-
 
54
 
-
 
55
    ui->textEdit->setFocus();
45
}
56
}
46
 
57
 
47
 
58
 
48
void QmEditAddendum::save(void)
59
void QmEditAddendum::save(void)
49
{
60
{