Offset function

This commit is contained in:
wmayer
2012-11-25 15:56:46 +01:00
parent 20091624db
commit b38b4b7159
15 changed files with 581 additions and 35 deletions

View File

@@ -24,6 +24,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <QMessageBox>
#endif
#include "TaskDialog.h"
@@ -57,6 +58,20 @@ const std::vector<QWidget*> &TaskDialog::getDialogContent(void) const
return Content;
}
bool TaskDialog::canClose() const
{
QMessageBox msgBox;
msgBox.setText(tr("A dialog is already open in the task panel"));
msgBox.setInformativeText(QObject::tr("Do you want to close this dialog?"));
msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
msgBox.setDefaultButton(QMessageBox::Yes);
int ret = msgBox.exec();
if (ret == QMessageBox::Yes)
return true;
else
return false;
}
//==== calls from the TaskView ===============================================================
void TaskDialog::open()