DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
CommitDialog.cpp
Go to the documentation of this file.
1
3
5
7 : QDialog ( parent ),
8 ui ( new Ui::CommitDialog )
9{
11 setupUi ( this );
12
14 setModal ( true );
15 setSizePolicy ( QSizePolicy::Preferred, QSizePolicy::Preferred );
16 setToolTip ( "Enter a commit message (optional) and press the ok button." );
17 show();
18
21}
22
24{
25 connect ( OkButton, SIGNAL ( clicked() ), this, SLOT ( OkCommitMessage() ),
26 Qt::UniqueConnection );
27 connect ( CancelButton, SIGNAL ( clicked() ), this, SLOT ( CancelCommitMessage() ),
28 Qt::UniqueConnection );
29}
30
32{
33 return CommitMessageLine->text();
34}
35
37{
38 if ( !CommitMessageLine->text().isEmpty() )
39 {
40 OkButton->setEnabled ( true );
41 }
42 else
43 {
44 OkButton->setEnabled ( false );
45 }
46}
47
49{
50 accept();
51}
52
54{
55 reject();
56}
~CommitDialog()
Including DBE.
CommitDialog(QWidget *parent=0)
QString GetCommitMessage() const