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