mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-01 03:45:35 +00:00
fixed bugs, added extra display_type
This commit is contained in:
parent
7dff34ebf1
commit
1c35a85adf
3 changed files with 7 additions and 4 deletions
|
@ -26,6 +26,7 @@ namespace CSMWorld
|
|||
|
||||
enum Display
|
||||
{
|
||||
Display_None, //Do not use
|
||||
Display_String,
|
||||
|
||||
//CONCRETE TYPES STARTS HERE
|
||||
|
|
|
@ -441,7 +441,6 @@ CSMWorld::ColumnBase::Display CSMWorld::TableMimeData::convertEnums (CSMWorld::U
|
|||
|
||||
|
||||
default:
|
||||
return CSMWorld::ColumnBase::Display_String;
|
||||
|
||||
return CSMWorld::ColumnBase::Display_None;
|
||||
}
|
||||
}
|
|
@ -130,7 +130,7 @@ void CSVFilter::EditWidget::createFilterRequest (std::vector< std::pair< std::st
|
|||
clear();
|
||||
std::stringstream ss;
|
||||
|
||||
if (multipleElements) //TODO appending to the existing filter
|
||||
if (multipleElements)
|
||||
{
|
||||
if (replaceMode)
|
||||
{
|
||||
|
@ -169,9 +169,12 @@ void CSVFilter::EditWidget::createFilterRequest (std::vector< std::pair< std::st
|
|||
ss<<')';
|
||||
}
|
||||
|
||||
if (ss.str().length() >4)
|
||||
{
|
||||
insert (QString::fromStdString (ss.str().c_str()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
std::string CSVFilter::EditWidget::generateFilter (std::pair< std::string, std::vector< std::string > >& seekedString) const
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue