mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
more diveplanner.cpp improvements
* Move variable members construction to the initializer lists. Signed-off-by: Boris Barbulovski <bbarbulovski@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9ffb459ff3
commit
d48910b711
1 changed files with 4 additions and 3 deletions
|
@ -905,10 +905,11 @@ void Ruler::setColor(const QColor& color)
|
|||
setPen(defaultPen);
|
||||
}
|
||||
|
||||
Button::Button(QObject* parent, QGraphicsItem *itemParent): QObject(parent), QGraphicsRectItem(itemParent)
|
||||
Button::Button(QObject* parent, QGraphicsItem *itemParent) : QObject(parent),
|
||||
QGraphicsRectItem(itemParent),
|
||||
icon(new QGraphicsPixmapItem(this)),
|
||||
text(new QGraphicsSimpleTextItem(this))
|
||||
{
|
||||
icon = new QGraphicsPixmapItem(this);
|
||||
text = new QGraphicsSimpleTextItem(this);
|
||||
icon->setPos(0,0);
|
||||
text->setPos(0,0);
|
||||
setFlag(ItemIgnoresTransformations);
|
||||
|
|
Loading…
Add table
Reference in a new issue