Gui: modernize C++11
* use nullptr
This commit is contained in:
@@ -273,7 +273,7 @@ QSize TaskPanel::minimumSizeHint() const
|
||||
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
TaskView::TaskView(QWidget *parent)
|
||||
: QScrollArea(parent),ActiveDialog(0),ActiveCtrl(0)
|
||||
: QScrollArea(parent),ActiveDialog(nullptr),ActiveCtrl(nullptr)
|
||||
{
|
||||
//addWidget(new TaskEditControl(this));
|
||||
//addWidget(new TaskAppearance(this));
|
||||
@@ -530,10 +530,10 @@ void TaskView::removeDialog(void)
|
||||
if (ActiveCtrl) {
|
||||
taskPanel->removeWidget(ActiveCtrl);
|
||||
delete ActiveCtrl;
|
||||
ActiveCtrl = 0;
|
||||
ActiveCtrl = nullptr;
|
||||
}
|
||||
|
||||
TaskDialog* remove = NULL;
|
||||
TaskDialog* remove = nullptr;
|
||||
if (ActiveDialog) {
|
||||
// See 'accept' and 'reject'
|
||||
if (ActiveDialog->property("taskview_accept_or_reject").isNull()) {
|
||||
@@ -542,7 +542,7 @@ void TaskView::removeDialog(void)
|
||||
taskPanel->removeWidget(*it);
|
||||
}
|
||||
remove = ActiveDialog;
|
||||
ActiveDialog = 0;
|
||||
ActiveDialog = nullptr;
|
||||
}
|
||||
else {
|
||||
ActiveDialog->setProperty("taskview_remove_dialog", true);
|
||||
|
||||
Reference in New Issue
Block a user