Add annotations and referenceLine hide or show functions.
This commit is contained in:
@@ -460,11 +460,11 @@ void ImageViewManager::unloadFusion() {
|
||||
}
|
||||
}
|
||||
|
||||
void ImageViewManager::switchFusion(bool fusion) {
|
||||
void ImageViewManager::switchFusion() {
|
||||
if (currentView) {
|
||||
if (currentView->hasSeries() && currentView->isFusion() && !fusion) {
|
||||
if (currentView->hasSeries() && currentView->isFusion() ) {
|
||||
unloadFusion();
|
||||
} else if (fusion) {
|
||||
} else {
|
||||
loadFusion();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ public:
|
||||
|
||||
void loadFusion();
|
||||
|
||||
void switchFusion(bool fusion);
|
||||
void switchFusion();
|
||||
|
||||
int checkSyncAbility(DicomImageView* view);
|
||||
|
||||
|
||||
@@ -364,14 +364,6 @@ void DefaultToolBar::initFusionButton() {
|
||||
mBtnFusion->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
||||
mBtnFusion->setToolTip(QString("Fusion"));
|
||||
connect(mBtnFusion, &QToolButton::clicked, this, &DefaultToolBar::fusion);
|
||||
mBtnFusion->setCheckable(true);
|
||||
QMenu *m = new QMenu(this);
|
||||
m->addAction(tr("Reset Fusion"), [=](){
|
||||
mBtnFusion->setChecked(false);
|
||||
emit fusion(false);
|
||||
});
|
||||
mBtnFusion->setPopupMode(QToolButton::MenuButtonPopup);
|
||||
mBtnFusion->setMenu(m);
|
||||
mBtnFusion->setEnabled(false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user