4a6f5233a32c30e88ff74dd1cb364706ba2fd9d3
[jspeed] / src / detailwidget.cpp
1 /*
2  * This file is part of jSpeed.
3  *
4  * jSpeed is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * jSpeed is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with jSpeed.  If not, see <http://www.gnu.org/licenses/>.
16  *
17  */
18
19 #include "detailwidget.h"
20 #include "detailscreen.h"
21
22 DetailWidget::DetailWidget(QWidget* parent): WidgetScreen(parent)
23 {
24     screen_ = new DetailScreen;
25     connect(screen_, SIGNAL(minimizePressed()), this, SIGNAL(minimizePressed()));
26     connect(screen_, SIGNAL(settingsPressed()), this, SIGNAL(settingsPressed()));
27     connect(screen_, SIGNAL(closePressed()), this, SIGNAL(closePressed()));
28     connect(screen_, SIGNAL(clicked()), this, SIGNAL(clicked()));
29     addWidget(screen_);
30 }
31
32 void DetailWidget::update()
33 {
34     screen_->update();
35 }
36
37 void DetailWidget::reArrange()
38 {
39     screen_->reArrange();
40 }
41
42 void DetailWidget::flip()
43 {
44     screen_->flip();
45 }