mupen64plus-oldsvn/main/gui_qt4/romdelegate.h
2008-08-25 10:11:21 +00:00

40 lines
1.3 KiB
C++

/*
* Copyright (C) 2008 Louai Al-Khanji
*
* This program is free software; you can redistribute it and/
* or modify it under the terms of the GNU General Public Li-
* cence as published by the Free Software Foundation; either
* version 2 of the Licence, or any later version.
*
* This program is distributed in the hope that it will be use-
* ful, but WITHOUT ANY WARRANTY; without even the implied war-
* ranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public Licence for more details.
*
* You should have received a copy of the GNU General Public
* Licence along with this program; if not, write to the Free
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
* USA.
*
*/
#ifndef MUPEN64_QT4_GUI_ROM_DELEGATE_H
#define MUPEN64_QT4_GUI_ROM_DELEGATE_H
#include <QItemDelegate>
#include <QPixmap>
class RomDelegate : public QItemDelegate
{
Q_OBJECT
public:
RomDelegate(QObject* parent = 0);
virtual void paint(QPainter* painter,
const QStyleOptionViewItem& option,
const QModelIndex& index) const;
virtual QSize sizeHint(const QStyleOptionViewItem& option,
const QModelIndex& index) const;
};
#endif // MUPEN64_QT4_GUI_ROM_DELEGATE_H