MCPcopy Create free account
hub / github.com/KDE/kdiff3 / slotDirShowBoth

Method slotDirShowBoth

src/pdiff.cpp:1543–1571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1541}
1542
1543void KDiff3App::slotDirShowBoth()
1544{
1545 if(dirShowBoth->isChecked())
1546 {
1547 if(m_pDirectoryMergeDock)
1548 m_pDirectoryMergeDock->setVisible(m_bDirCompare);
1549 if(m_pDirectoryMergeInfoDock)
1550 m_pDirectoryMergeInfoDock->setVisible(m_bDirCompare);
1551
1552 m_pMainWidget->show();
1553 }
1554 else
1555 {
1556 bool bTextDataAvailable = (m_sd1->hasData() || m_sd2->hasData() || m_sd3->hasData());
1557 if(bTextDataAvailable)
1558 {
1559 m_pMainWidget->show();
1560 m_pDirectoryMergeDock->hide();
1561 m_pDirectoryMergeInfoDock->hide();
1562 }
1563 else if(m_bDirCompare)
1564 {
1565 m_pDirectoryMergeDock->show();
1566 m_pDirectoryMergeInfoDock->show();
1567 }
1568 }
1569
1570 Q_EMIT updateAvailabilities();
1571}
1572
1573void KDiff3App::slotDirViewToggle()
1574{

Callers

nothing calls this directly

Calls 4

showMethod · 0.80
hasDataMethod · 0.80
hideMethod · 0.80
setVisibleMethod · 0.45

Tested by

no test coverage detected