Привет, тема вроде подходит для моего вопроса... Проблема в том, что у меня не изменяется цвет ячеек.. вот код:
Код | void RDataTable::updateRow(int cur, int t){ /** Set text to 5th item **/ this->item( cur, 4 )->setText( trUtf8( this->getTypeStr( t ) ) );
/** generate tooltip text **/ std::string s; s = ""; s = "<html><h3>"; s += this->getTypeStr( t ); s += "</h3></html>";
/** Set tooltip text **/ this->item( cur, 4 )->setToolTip( trUtf8( s.c_str() ) );
/** Update background color **/ for ( int i = 0; i < RDT_COLS; i++ ){ this->item( cur, i )->setBackgroundColor( this->getColor( cur ) ); }
/** Choose next **/ this->selectRowNext(); }
|
Текст устанавливается, тултип устанавливается, а вот бэкграунд нет... В чем ошибка? |