class DvdScene : public QGraphicsScene
{
-Q_OBJECT
+ Q_OBJECT
public:
DvdScene(QObject * parent = 0): QGraphicsScene(parent) {
m_width = 0; m_height = 0;
protected:
void mouseReleaseEvent( QGraphicsSceneMouseEvent * mouseEvent ) {
- QGraphicsScene::mouseReleaseEvent(mouseEvent);
- emit sceneChanged();
+ QGraphicsScene::mouseReleaseEvent(mouseEvent);
+ emit sceneChanged();
}
signals:
void sceneChanged();
setFlag(QGraphicsItem::ItemSendsGeometryChanges, true);
#endif
}
- void setTarget(int t, QString c) {
+ void setTarget(int t, const QString &c) {
m_target = t;
m_command = c;
}
bool createMenu() const;
void createBackgroundImage(const QString &img1, bool letterbox);
void createButtonImages(const QString &selected_image, const QString &highlighted_image, bool letterbox);
- void setTargets(QStringList list, QStringList targetlist);
+ void setTargets(const QStringList &list, const QStringList &targetlist);
QMap <QString, QRect> buttonsInfo(bool letterbox = false);
bool loopMovie() const;
bool menuMovie() const;
int menuMovieLength() const;
void changeProfile(DVDFORMAT format);
QDomElement toXml() const;
- void loadXml(DVDFORMAT format, QDomElement xml);
+ void loadXml(DVDFORMAT format, const QDomElement &xml);
void prepareUnderLines();
void resetUnderLines();
void setButtonTarget(int ix);
void deleteButton();
void updateColor();
- void updateColor(QColor c);
+ void updateColor(const QColor &c);
void updateUnderlineColor(QColor c);
void setBackToMenu(bool backToMenu);
void slotZoom();