Skip to content

Commit

Permalink
BUG: Fix ctkDICOMBrowserTester test
Browse files Browse the repository at this point in the history
  • Loading branch information
Punzo authored and jcfr committed Jan 12, 2024
1 parent 2b2981a commit b4d35c5
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions Libs/DICOM/Widgets/Testing/Cpp/ctkDICOMBrowserTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,20 +141,10 @@ void ctkDICOMBrowserTester::testImportDirectoryMode()
{
ctkDICOMBrowser browser;
browser.setDatabaseDirectory(this->TemporaryDatabaseDirectoryName);

browser.setImportDirectoryMode(ctkDICOMBrowser::ImportDirectoryCopy);
QCOMPARE(browser.importDirectoryMode(), ctkDICOMBrowser::ImportDirectoryCopy);

browser.setImportDirectoryMode(ctkDICOMBrowser::ImportDirectoryAddLink);
QCOMPARE(browser.importDirectoryMode(), ctkDICOMBrowser::ImportDirectoryAddLink);

QComboBox* comboBox = browser.importDialog()->bottomWidget()->findChild<QComboBox*>();

comboBox->setCurrentIndex(comboBox->findData(static_cast<int>(ctkDICOMBrowser::ImportDirectoryCopy)));
QCOMPARE(browser.importDirectoryMode(), ctkDICOMBrowser::ImportDirectoryCopy);

comboBox->setCurrentIndex(comboBox->findData(static_cast<int>(ctkDICOMBrowser::ImportDirectoryAddLink)));
QCOMPARE(browser.importDirectoryMode(), ctkDICOMBrowser::ImportDirectoryAddLink);
}

// ----------------------------------------------------------------------------
Expand Down

0 comments on commit b4d35c5

Please sign in to comment.