23 #ifndef FILEEXISTSWINDOW 24 #define FILEEXISTSWINDOW 29 #include <QVBoxLayout> 30 #include <QPushButton> 41 QHBoxLayout *push_layout;
56 text=
new QLabel(
this);
57 text->setText(
"A text file is already associated to the image." 58 "If you press the save button, you will overwrite it.");
60 push=
new QPushButton(
this);
61 push->setText(
"Proceed");
63 layout=
new QVBoxLayout(
this);
64 push_layout=
new QHBoxLayout();
66 push_layout->addWidget(push);
68 layout->addWidget(text);
69 layout->addLayout(push_layout);
71 this->setWindowTitle(
"Warning: A text file already exists.");
72 QObject::connect(push,SIGNAL(clicked()),
this,SLOT(quit()));
85 #endif // FILEEXISTSWINDOW FileExistsWindow()
The constructor of the FileExistsWindow.
Definition: fileexistswindow.h:54
Warning window.
Definition: fileexistswindow.h:32