Subversion Repositories OpenInventory

Rev

Rev 223 | Rev 226 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 223 Rev 224
Line 925... Line 925...
925
925
926
        filterSpinDelegate.setClassID(class_id);
926
        filterSpinDelegate.setClassID(class_id);
927
        filterSpinDelegate.getItems();
927
        filterSpinDelegate.getItems();
928
        ui->tableView_3->setItemDelegateForColumn(4, &filterSpinDelegate);
928
        ui->tableView_3->setItemDelegateForColumn(4, &filterSpinDelegate);
929
929
930
-
 
-
 
930
       // ui->tableView_3->setItemDelegate();
931
        conditionList <<"" << "and" << "or" << "(" << "and (" << "or (";
931
        conditionList <<"" << "and" << "or" << "(" << "and (" << "or (";
932
        filterConditionDelegate.setItems(conditionList);
932
        filterConditionDelegate.setItems(conditionList);
933
        ui->tableView_3->setItemDelegateForColumn(3, &filterConditionDelegate);
933
        ui->tableView_3->setItemDelegateForColumn(3, &filterConditionDelegate);
934
934
935
        conditionList.clear();
935
        conditionList.clear();
936
        conditionList <<"" << "=" << "<" << ">" ;
936
        conditionList <<"" << "=" << "<" << ">" ;
937
        filterConditionDelegate_1.setItems(conditionList);
937
        filterConditionDelegate_1.setItems(conditionList);
938
        ui->tableView_3->setItemDelegateForColumn(5, &filterConditionDelegate_1);
938
        ui->tableView_3->setItemDelegateForColumn(5, &filterConditionDelegate_1);
939
939
940
940
-
 
941
        ui->tableView_3->setItemDelegateForColumn(6, &filterValueDelegate);
-
 
942
-
 
943
-
 
944
941
945
942
        ui->pushButton_9->setEnabled(true);
946
        ui->pushButton_9->setEnabled(true);
943
        ui->pushButton_10->setEnabled(true);
947
        ui->pushButton_10->setEnabled(true);
944
948
945
        ui->comboBox->setEnabled(false);
949
        ui->comboBox->setEnabled(false);