mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 16:57:46 +08:00
0.12.3: Increased Tango rendering performance, modified all handleEvent() with new interface (now returning bool)
This commit is contained in:
@@ -40,7 +40,7 @@ class TexturingState : public QObject, public ProgressState
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
TexturingState(ProgressDialog * dialog): dialog_(dialog), canceled_(false)
|
||||
TexturingState(ProgressDialog * dialog): dialog_(dialog)
|
||||
{
|
||||
connect(dialog_, SIGNAL(canceled()), this, SLOT(cancel()));
|
||||
}
|
||||
@@ -53,18 +53,17 @@ public:
|
||||
dialog_->incrementStep();
|
||||
}
|
||||
QApplication::processEvents();
|
||||
return !canceled_;
|
||||
return !isCanceled();
|
||||
}
|
||||
|
||||
public slots:
|
||||
void cancel()
|
||||
{
|
||||
canceled_ = true;
|
||||
setCanceled(true);
|
||||
}
|
||||
|
||||
private:
|
||||
ProgressDialog * dialog_;
|
||||
bool canceled_;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user