mirror of
https://gitgud.io/wackyideas/aerothemeplasma-kde6.git
synced 2024-08-15 00:43:45 +00:00
31 lines
866 B
C++
Executable file
31 lines
866 B
C++
Executable file
//////////////////////////////////////////////////////////////////////////////
|
|
// breezetransitiondata.cpp
|
|
// data container for generic transitions
|
|
// -------------------
|
|
//
|
|
// SPDX-FileCopyrightText: 2009 Hugo Pereira Da Costa <hugo.pereira@free.fr>
|
|
//
|
|
// SPDX-License-Identifier: MIT
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
#include "breezetransitiondata.h"
|
|
|
|
namespace Breeze
|
|
{
|
|
//_________________________________________________________________
|
|
TransitionData::TransitionData(QObject *parent, QWidget *target, int duration)
|
|
: QObject(parent)
|
|
, _transition(new TransitionWidget(target, duration))
|
|
{
|
|
_transition.data()->hide();
|
|
}
|
|
|
|
//_________________________________________________________________
|
|
TransitionData::~TransitionData()
|
|
{
|
|
if (_transition) {
|
|
_transition.data()->deleteLater();
|
|
}
|
|
}
|
|
|
|
}
|