Theme Editor: Added coordinate display when moving mouse around preview window

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27738 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Robert Bieber 2010-08-06 20:53:50 +00:00
parent 76d1377d04
commit df1ff115f5
10 changed files with 130 additions and 9 deletions

View file

@ -29,10 +29,10 @@
#include <QAbstractItemModel>
#include <QList>
#include <QGraphicsScene>
#include "parsetreenode.h"
#include "devicestate.h"
#include "rbscene.h"
class ParseTreeModel : public QAbstractItemModel
{
@ -64,8 +64,8 @@ public:
Qt::ItemFlags flags(const QModelIndex &index) const;
bool setData(const QModelIndex &index, const QVariant &value, int role);
QGraphicsScene* render(ProjectModel* project, DeviceState* device,
SkinDocument* doc, const QString* file = 0);
RBScene* render(ProjectModel* project, DeviceState* device,
SkinDocument* doc, const QString* file = 0);
static QString safeSetting(ProjectModel* project, QString key,
QString fallback)
@ -85,7 +85,7 @@ private:
ParseTreeNode* root;
ParseTreeModel* sbsModel;
struct skin_element* tree;
QGraphicsScene* scene;
RBScene* scene;
};