danicoinwallet/src/gui/TransactionFrame.h
2015-04-30 15:11:48 +03:00

36 lines
763 B
C++

// Copyright (c) 2011-2015 The Cryptonote developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once
#include <QDataWidgetMapper>
#include <QFrame>
#include <QModelIndex>
#include <QStyledItemDelegate>
namespace Ui {
class TransactionFrame;
}
namespace WalletGui {
class TransactionFrame : public QFrame {
Q_OBJECT
Q_DISABLE_COPY(TransactionFrame)
public:
TransactionFrame(const QModelIndex &_index, QWidget* _parent);
~TransactionFrame();
protected:
void mousePressEvent(QMouseEvent* _event) Q_DECL_OVERRIDE;
private:
QScopedPointer<Ui::TransactionFrame> m_ui;
QDataWidgetMapper m_dataMapper;
QPersistentModelIndex m_index;
};
}