/
creffectguitray.cpp
48 lines (41 loc) · 1.68 KB
/
creffectguitray.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/***************************************************************************
creffectguitray.cpp - description
-------------------
begin : Fri Apr 13 2001
copyright : (C) 2001 by Jozef Kosoru
: (C) 2011 by Kasper Laudrup
email : jozef.kosoru@pobox.sk
: laudrup@stacktrace.dk
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License version 2 *
* as published by the Free Software Foundation. *
* *
***************************************************************************/
#include <QLayout>
#include <Q3Frame>
#include <Q3HBoxLayout>
#include "creffectguitray.h"
#include "creffectgui.h"
CrEffectGuiTray::CrEffectGuiTray(QWidget *parent, const char *name ) :
Q3Frame(parent,name)
{
//setBackgroundColor(Qt::black);
setBackgroundMode(Qt::PaletteBackground);
setFrameStyle(Q3Frame::Box | Q3Frame::Raised);
setLineWidth(1);
setMidLineWidth(1);
setMargin(0);
m_layout = new Q3HBoxLayout(this, 4, 0);
}
CrEffectGuiTray::~CrEffectGuiTray()
{
}
/** insert CrEffectGui widget into space */
void CrEffectGuiTray::insertEffectGuiWidget(CrEffectGui* effectGui)
{
//assert(effectGui->parent() == this);
m_layout->addWidget(effectGui, 0, Qt::AlignVCenter);
}