mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-13 03:22:34 -04:00
Updated rs interface for new File Transfer.
tweaked Transfer displays to work with new interface. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@783 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
0d96b43d34
commit
6a8509740b
5 changed files with 173 additions and 88 deletions
|
@ -51,7 +51,8 @@ GraphWidget::GraphWidget(QWidget *parent)
|
|||
#if 0
|
||||
QGraphicsScene *scene = new QGraphicsScene(this);
|
||||
scene->setItemIndexMethod(QGraphicsScene::NoIndex);
|
||||
scene->setSceneRect(-200, -200, 400, 400);
|
||||
//scene->setSceneRect(-200, -200, 400, 400);
|
||||
scene->setSceneRect(-200, -200, 1000, 1000);
|
||||
setScene(scene);
|
||||
|
||||
centerNode = new Node(this, 1, "You");
|
||||
|
@ -66,7 +67,8 @@ GraphWidget::GraphWidget(QWidget *parent)
|
|||
setTransformationAnchor(AnchorUnderMouse);
|
||||
setResizeAnchor(AnchorViewCenter);
|
||||
scale(0.8, 0.8);
|
||||
setMinimumSize(400, 400);
|
||||
//setMinimumSize(400, 400);
|
||||
//setMinimumSize(1000, 1000);
|
||||
setWindowTitle(tr("Elastic Nodes"));
|
||||
|
||||
clearGraph();
|
||||
|
@ -81,21 +83,14 @@ bool GraphWidget::clearGraph()
|
|||
|
||||
QGraphicsScene *scene = new QGraphicsScene(this);
|
||||
scene->setItemIndexMethod(QGraphicsScene::NoIndex);
|
||||
scene->setSceneRect(-200, -200, 400, 400);
|
||||
//scene->setSceneRect(-200, -200, 400, 400);
|
||||
scene->setSceneRect(-200, -200, 1000, 1000);
|
||||
setScene(scene);
|
||||
//setCacheMode(CacheBackground);
|
||||
//setRenderHint(QPainter::Antialiasing);
|
||||
//setTransformationAnchor(AnchorUnderMouse);
|
||||
//setResizeAnchor(AnchorViewCenter);
|
||||
|
||||
centerNode = new Node(this, 1, "OwnId", "You");
|
||||
scene->addItem(centerNode);
|
||||
centerNode->setPos(0, 0);
|
||||
|
||||
//scale(0.8, 0.8);
|
||||
//setMinimumSize(400, 400);
|
||||
//setWindowTitle(tr("Elastic Nodes"));
|
||||
|
||||
if (oldscene)
|
||||
{
|
||||
delete oldscene;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue