eventhistory.h

来自「ralinktech rt61 wireless driver」· C头文件 代码 · 共 64 行

H
64
字号
/* * wpa_gui - EventHistory class * Copyright (c) 2005-2006, Jouni Malinen <j@w1.fi> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * Alternatively, this software may be distributed under the terms of BSD * license. * * See README and COPYING for more details. */#ifndef EVENTHISTORY_H#define EVENTHISTORY_H#include <QObject>#include "ui_eventhistory.h"class EventListModel : public QAbstractTableModel{	Q_OBJECTpublic:	EventListModel(QObject *parent = 0)		: QAbstractTableModel(parent) {}        int rowCount(const QModelIndex &parent = QModelIndex()) const;        int columnCount(const QModelIndex &parent = QModelIndex()) const;        QVariant data(const QModelIndex &index, int role) const;        QVariant headerData(int section, Qt::Orientation orientation,                            int role = Qt::DisplayRole) const;	void addEvent(QString time, QString msg);private:	QStringList timeList;	QStringList msgList;};class EventHistory : public QDialog, public Ui::EventHistory{	Q_OBJECTpublic:	EventHistory(QWidget *parent = 0, const char *name = 0,		     bool modal = false, Qt::WFlags fl = 0);	~EventHistory();public slots:	virtual void addEvents(WpaMsgList msgs);	virtual void addEvent(WpaMsg msg);protected slots:	virtual void languageChange();private:	EventListModel *elm;};#endif /* EVENTHISTORY_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?