00001 /* -*- Mode: c++ -*- 00002 * vim: set expandtab tabstop=4 shiftwidth=4: 00003 */ 00004 00005 #include "loglist.h" 00006 00007 LogList::LogList() : ListBoxSetting(this), idx(0) 00008 { 00009 setSelectionMode(MythListBox::NoSelection); 00010 } 00011 00012 void LogList::AppendLine(const QString &text) 00013 { 00014 addSelection(text, QString::number(idx)); 00015 setCurrentItem(idx); 00016 idx++; 00017 }