mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
28 lines
499 B
C
28 lines
499 B
C
|
#include "ui_TrustView.h"
|
||
|
|
||
|
class QWheelEvent ;
|
||
|
|
||
|
class TrustView: public QWidget, public Ui::TrustView
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
TrustView() ;
|
||
|
|
||
|
protected:
|
||
|
virtual void wheelEvent(QWheelEvent *) ;
|
||
|
|
||
|
public slots:
|
||
|
void update() ;
|
||
|
void updateZoom(int) ;
|
||
|
void selectCell(int,int) ;
|
||
|
|
||
|
private:
|
||
|
void getCellSize(int z,int& cell_width,int& cell_height) const ;
|
||
|
int getRowColId(const std::string& name) ;
|
||
|
|
||
|
static const int _base_cell_width = 60 ;
|
||
|
static const int _base_cell_height = 30 ;
|
||
|
};
|
||
|
|