Skip to content
Snippets Groups Projects
Commit 07ee5a6a authored by SeeLook's avatar SeeLook
Browse files

Missing TnotePair class

parent 2cf4d431
No related branches found
No related tags found
No related merge requests found
...@@ -71,7 +71,7 @@ TnoteObject::TnoteObject(TstaffObject* staffObj) : ...@@ -71,7 +71,7 @@ TnoteObject::TnoteObject(TstaffObject* staffObj) :
m_bg = qobject_cast<QQuickItem*>(comp.create()); m_bg = qobject_cast<QQuickItem*>(comp.create());
m_bg->setParentItem(this); m_bg->setParentItem(this);
QColor bgColor = qApp->palette().highlight().color(); QColor bgColor = qApp->palette().highlight().color();
bgColor.setAlpha(100); bgColor.setAlpha(50);
m_bg->setProperty("color", bgColor); m_bg->setProperty("color", bgColor);
comp.setData("import QtQuick 2.7; Rectangle {}", QUrl()); comp.setData("import QtQuick 2.7; Rectangle {}", QUrl());
......
/***************************************************************************
* Copyright (C) 2017 by Tomasz Bojczuk *
* seelook@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
***************************************************************************/
#include "tnotepair.h"
#include "music/tnote.h"
#include "tnoteobject.h"
TnotePair::TnotePair(Tnote* n, TnoteObject* ob) :
m_note(n),
m_noteObj(ob)
{
}
void TnotePair::setNoteObject(TnoteObject* ob) {
m_noteObj = ob;
}
/***************************************************************************
* Copyright (C) 2017 by Tomasz Bojczuk *
* seelook@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
***************************************************************************/
#ifndef TNOTEPAIR_H
#define TNOTEPAIR_H
class Tnote;
class TnoteObject;
/**
* @todo write docs
*/
class TnotePair
{
public:
TnotePair(Tnote* n = nullptr, TnoteObject* ob = nullptr);
Tnote* note() { return m_note; }
TnoteObject* object() { return m_noteObj; }
void setNoteObject(TnoteObject* ob);
private:
Tnote *m_note;
TnoteObject *m_noteObj;
};
#endif // TNOTEPAIR_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment