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) {
|
||||||
if (currentView->hasSeries() && currentView->isFusion() && !fusion) {
|
if (currentView->hasSeries() && currentView->isFusion() ) {
|
||||||
unloadFusion();
|
unloadFusion();
|
||||||
} else if (fusion) {
|
} else {
|
||||||
loadFusion();
|
loadFusion();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ public:
|
|||||||
|
|
||||||
void loadFusion();
|
void loadFusion();
|
||||||
|
|
||||||
void switchFusion(bool fusion);
|
void switchFusion();
|
||||||
|
|
||||||
int checkSyncAbility(DicomImageView* view);
|
int checkSyncAbility(DicomImageView* view);
|
||||||
|
|
||||||
|
|||||||
@@ -364,14 +364,6 @@ void DefaultToolBar::initFusionButton() {
|
|||||||
mBtnFusion->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
mBtnFusion->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
||||||
mBtnFusion->setToolTip(QString("Fusion"));
|
mBtnFusion->setToolTip(QString("Fusion"));
|
||||||
connect(mBtnFusion, &QToolButton::clicked, this, &DefaultToolBar::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);
|
mBtnFusion->setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user