- Don't create layouts with parent. Qt 4.x automatically reparents
[duncan/yast2-qt4.git] / src / YQUI_widgets.cc
1 /*---------------------------------------------------------------------\
2 |                                                                      |
3 |                      __   __    ____ _____ ____                      |
4 |                      \ \ / /_ _/ ___|_   _|___ \                     |
5 |                       \ V / _` \___ \ | |   __) |                    |
6 |                        | | (_| |___) || |  / __/                     |
7 |                        |_|\__,_|____/ |_| |_____|                    |
8 |                                                                      |
9 |                               core system                            |
10 |                                                        (C) SuSE GmbH |
11 \----------------------------------------------------------------------/
12
13   File:         YUIQt_widgets.cc
14
15   Author:       Stefan Hundhammer <sh@suse.de>
16
17 /-*/
18
19 #define y2log_component "qt-ui"
20 #include <ycp/y2log.h>
21 #include <QDesktopWidget>
22
23 #include "YQUI.h"
24
25 #include "YQDialog.h"
26 #include "YQPackageSelectorPlugin.h"
27
28
29
30 YQPackageSelectorPlugin * YQUI::packageSelectorPlugin()
31 {
32     static YQPackageSelectorPlugin * plugin = 0;
33
34     if ( ! plugin )
35     {
36         plugin = new YQPackageSelectorPlugin();
37
38         // This is a deliberate memory leak: If an application requires a
39         // PackageSelector, it is a package selection application by
40         // definition. In this case, the qt_pkg plugin is intentionally kept
41         // open to avoid repeated start-up cost of the plugin and libzypp.
42     }
43
44     return plugin;
45 }
46
47
48
49
50 // EOF