]> icculus.org git repositories - duncan/yast2-qt4.git/blob - src/YQUI_widgets.cc
restart qt4 porting
[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
22 #include "YQUI.h"
23
24 #include "YQDialog.h"
25 #include "YQPackageSelectorPlugin.h"
26
27
28
29 YQPackageSelectorPlugin * YQUI::packageSelectorPlugin()
30 {
31     static YQPackageSelectorPlugin * plugin = 0;
32
33     if ( ! plugin )
34     {
35         plugin = new YQPackageSelectorPlugin();
36
37         // This is a deliberate memory leak: If an application requires a
38         // PackageSelector, it is a package selection application by
39         // definition. In this case, the qt_pkg plugin is intentionally kept
40         // open to avoid repeated start-up cost of the plugin and libzypp.
41     }
42
43     return plugin;
44 }
45
46
47
48
49 // EOF