?? eventhistory.ui.h
字號:
/****************************************************************************** ui.h extension file, included from the uic-generated form implementation.**** If you want to add, delete, or rename functions or slots, use** Qt Designer to update this file, preserving your code.**** You should not define a constructor or destructor in this file.** Instead, write your code in functions called init() and destroy().** These will automatically be called by the form's constructor and** destructor.*****************************************************************************/void EventHistory::init(){}void EventHistory::destroy(){}void EventHistory::addEvents(WpaMsgList msgs){ WpaMsgList::iterator it; for (it = msgs.begin(); it != msgs.end(); it++) { addEvent(*it); }}void EventHistory::addEvent(WpaMsg msg){ QListViewItem *item; item = new QListViewItem(eventListView, msg.getTimestamp().toString("yyyy-MM-dd hh:mm:ss.zzz"), msg.getMsg()); if (item == NULL) return; eventListView->setSelected(item, false);}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -