Permalink
Browse files

Merge branch 'cool-devices' of github.com:pushsnowboarding/Push-Snowb…

…oarding
  • Loading branch information...
2 parents e779f81 + 10a4d88 commit 6d785030a7ea99b562e9261a560aac4b1dcf1722 Clovis Scotti committed Jun 1, 2011
Showing with 26 additions and 0 deletions.
  1. +18 −0 PushBurton2/graphicssettings.cpp
  2. +8 −0 PushBurton2/graphicssettings.h
@@ -41,6 +41,24 @@ GraphicsSettings::GraphicsSettings(PushDevicesHolder* devs, QObject* parent=0) :
startLiveViewBt = new GraphicTextBt("LIVE VIEW (DEBUG)", this);
startLiveViewBt->setPos(110+5,0);
connect(startLiveViewBt, SIGNAL(activated()), this, SLOT(start_live_view()));
+
+ userNameField = 0;
+ proxy2edit = 0;
+
+
+ userNameField = new QLineEdit("Username");
+ userNameField->setStyleSheet("color: blue;"
+ "background-color: transparent;"
+ "border-color: blue;"
+ "border-style: solid;"
+ "border-width: 1px;");
+
+ proxy2edit = new QGraphicsProxyWidget(this);
+ proxy2edit->setWidget(userNameField);
+ userNameField->setGeometry(0,0,150, 30);
+ proxy2edit->setVisible(true);
+ proxy2edit->setZValue(2);
+ proxy2edit->setPos(40, 120);
}
GraphicsSettings::~GraphicsSettings()
@@ -35,6 +35,10 @@
#include <QDebug>
+#include <QLineEdit>
+#include <QGraphicsProxyWidget>
+#include <QGraphicsScene>
+
#include "pushdevicesholder.h"
//Gambiarra, xunxo, workaround... (LiveView)
@@ -56,12 +60,16 @@ class GraphicsSettings : public QGraphicsObject
LiveView * liveView;
PushDevicesHolder * configuredDevices;
+ QLineEdit * userNameField;
+ QGraphicsProxyWidget * proxy2edit;
+
signals:
void home_bt_clicked();
private slots:
void start_live_view();
void end_live_view();
+
};
#endif // GRAPHICSSETTINGS_H

0 comments on commit 6d78503

Please sign in to comment.