Menu

[c54480]: / lockedfiledialog.cpp  Maximize  Restore  History

Download this file

29 lines (23 with data), 630 Bytes

 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
#include "lockedfiledialog.h"
LockedFileDialog::LockedFileDialog(QWidget* parent):QDialog (parent)
{
ui.setupUi(this);
ui.openReadonlyButton->setText(tr("Open readonly"));
ui.deleteLockfileButton->setText(tr("Delete lockfile"));
}
LockedFileDialog::Result LockedFileDialog::execDialog()
{
// Really show dialog
if (QDialog::exec() == QDialog::Accepted)
return OpenReadonly;
else
return DeleteLockfile;
}
void LockedFileDialog::setText (const QString &s)
{
ui.warningTE->setText(s);
}
void LockedFileDialog::setCaption(const QString &s)
{
QDialog::setWindowTitle("VYM - "+s);
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.