xca/lib/pass_info.h
Christian Hohnstaedt e5541c6d67 SF. Bug. #81 Make xca qt5 compatible
Extend XCA to also compile against Qt5
Remove directory from Qt includes
2015-09-17 18:42:42 +02:00

65 lines
866 B
C++

/* vi: set sw=4 ts=4:
*
* Copyright (C) 2001 - 2007 Christian Hohnstaedt.
*
* All rights reserved.
*/
#ifndef __PASS_INFO_H
#define __PASS_INFO_H
#include <QString>
#include <QObject>
#include <QWidget>
#include "widgets/MainWindow.h"
class pass_info: public QObject
{
Q_OBJECT
private:
QString title;
QString description;
QWidget *widget;
QString type;
QPixmap *pixmap;
public:
pass_info(QString t, QString d, QWidget *w = NULL);
QString getTitle()
{
return title;
}
QString getDescription()
{
return description;
}
QWidget *getWidget()
{
return widget;
}
QString getType()
{
return type;
}
QPixmap getImage()
{
return QPixmap(*pixmap);
}
void setTitle(QString t)
{
title = t;
}
void setDescription(QString d)
{
description = d;
}
void setWidget(QWidget *w)
{
widget = w;
}
void setPin();
};
#endif