void TREE_SECIM_KERNEL::FIND_SELECTED_ROW () { int return_value = ADAK_CONTINUE; if (sender()->metaObject()->className() NE QToolButton::staticMetaObject.className()) { QTreeWidgetItem * item = m_tree_widget->currentItem(); if (m_selected_items.contains(item) EQ false AND ( item->childCount() EQ 0 OR GET_ANA_GRUPLAR_SELECTABLE() > 0 ) ) { m_selected_items << item; } } if (m_selected_items.size() EQ 1) { return_value = SINGLE_LINE_SELECTED(GET_COLUMN_DATAS_FROM_ITEM(m_selected_items.at(0))); } else { QList<QStringList> selected_datas; for ( int i = 0 ; i < m_selected_items.count() ; i++ ) { selected_datas << GET_COLUMN_DATAS_FROM_ITEM(m_selected_items.at(i)); } return_value = MULTI_LINE_SELECTED ( selected_datas ); } switch ( return_value ) { case ADAK_EXIT: close(); break; case ADAK_CONTINUE: default: break; } }
void TREE_ARAMA_KERNEL::FIND_SELECTED_ROW () { int return_value = ADAK_CONTINUE; if (m_selected_items.size() EQ 1) { return_value = SINGLE_LINE_SELECTED(GET_COLUMN_DATAS_FROM_ITEM(m_selected_items.at(0))); } else { QList<QStringList> selected_datas; for ( int i = 0 ; i < m_selected_items.count() ; i++ ) { selected_datas << GET_COLUMN_DATAS_FROM_ITEM(m_selected_items.at(i)); } return_value = MULTI_LINE_SELECTED ( selected_datas ); } switch ( return_value ) { case ADAK_EXIT: close(); break; case ADAK_CONTINUE: default: break; } }