-rw-r--r-- | core/pim/todo/tableview.cpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/core/pim/todo/tableview.cpp b/core/pim/todo/tableview.cpp index d229f52..cd6740a 100644 --- a/core/pim/todo/tableview.cpp +++ b/core/pim/todo/tableview.cpp @@ -60,4 +60,15 @@ void TableView::initConfig() { TableView::TableView( MainWindow* window, QWidget* wid ) : QTable( wid ), TodoView( window ) { + + // Load icons + // TODO - probably should be done globally somewhere else, see also quickeditimpl.cpp/h + m_pic_completed = Resource::loadPixmap( "todo/completed" ); + QString namestr; + for ( unsigned int i = 1; i < 6; i++ ) { + namestr = "todo/priority"; + namestr.append( QString::number( i ) ); + m_pic_priority[ i - 1 ] = Resource::loadPixmap( namestr ); + } + setUpdatesEnabled( false ); viewport()->setUpdatesEnabled( false ); @@ -100,14 +111,4 @@ TableView::TableView( MainWindow* window, QWidget* wid ) m_first = true; - // Load icons - // TODO - probably should be done globally somewhere else, see also quickeditimpl.cpp/h - m_pic_completed = Resource::loadPixmap( "todo/completed" ); - QString namestr; - for ( unsigned int i = 1; i < 6; i++ ) { - namestr = "todo/priority"; - namestr.append( QString::number( i ) ); - m_pic_priority[ i - 1 ] = Resource::loadPixmap( namestr ); - } - /* now let's init the config */ initConfig(); |