mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Added view mode in Cross References - included Folio Field
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4491 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -110,6 +110,8 @@ void XRefPropertiesWidget::saveProperties(int index) {
|
||||
|
||||
if (ui->m_display_has_cross_rb->isChecked()) xrp.setDisplayHas(XRefProperties::Cross);
|
||||
else if (ui->m_display_has_contacts_rb->isChecked()) xrp.setDisplayHas(XRefProperties::Contacts);
|
||||
if (ui->m_display_folio_index_rb->isChecked()) xrp.setViewMode (XRefProperties::Index);
|
||||
else if (ui->m_display_folio_label_rb->isChecked()) xrp.setViewMode (XRefProperties::FolioLabel);
|
||||
if (ui->m_snap_to_cb->itemData(ui->m_snap_to_cb->currentIndex()).toString() == "bottom")
|
||||
xrp.setSnapTo(XRefProperties::Bottom);
|
||||
else xrp.setSnapTo(XRefProperties::Label);
|
||||
@@ -137,6 +139,14 @@ void XRefPropertiesWidget::updateDisplay() {
|
||||
ui->m_display_has_contacts_rb->setChecked(true);
|
||||
}
|
||||
|
||||
XRefProperties::ViewMode vw = xrp.viewMode();
|
||||
if (vw == XRefProperties::Index) {
|
||||
ui->m_display_folio_index_rb->setChecked(true);
|
||||
}
|
||||
else if (vw == XRefProperties::FolioLabel) {
|
||||
ui->m_display_folio_label_rb->setChecked(true);
|
||||
}
|
||||
|
||||
if (xrp.snapTo() == XRefProperties::Bottom)
|
||||
ui->m_snap_to_cb->setCurrentIndex(ui->m_snap_to_cb->findData("bottom"));
|
||||
else ui->m_snap_to_cb->setCurrentIndex(ui->m_snap_to_cb->findData("label"));
|
||||
|
||||
Reference in New Issue
Block a user