summaryrefslogtreecommitdiff
path: root/noncore/settings/packagemanager/packageinfodlg.cpp
Unidiff
Diffstat (limited to 'noncore/settings/packagemanager/packageinfodlg.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/packagemanager/packageinfodlg.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/settings/packagemanager/packageinfodlg.cpp b/noncore/settings/packagemanager/packageinfodlg.cpp
index 7abd17e..73d3de7 100644
--- a/noncore/settings/packagemanager/packageinfodlg.cpp
+++ b/noncore/settings/packagemanager/packageinfodlg.cpp
@@ -17,48 +17,49 @@
17    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 17    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
18  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU General 18  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU General
19..}^=.=       =       ; Public License for more details. 19..}^=.=       =       ; Public License for more details.
20++=   -.     .`     .: 20++=   -.     .`     .:
21 :     =  ...= . :.=- You should have received a copy of the GNU 21 :     =  ...= . :.=- You should have received a copy of the GNU
22 -.   .:....=;==+<; General Public License along with this file; 22 -.   .:....=;==+<; General Public License along with this file;
23  -_. . .   )=.  = see the file COPYING. If not, write to the 23  -_. . .   )=.  = see the file COPYING. If not, write to the
24    --        :-=` Free Software Foundation, Inc., 24    --        :-=` Free Software Foundation, Inc.,
25 59 Temple Place - Suite 330, 25 59 Temple Place - Suite 330,
26 Boston, MA 02111-1307, USA. 26 Boston, MA 02111-1307, USA.
27 27
28*/ 28*/
29 29
30#include "packageinfodlg.h" 30#include "packageinfodlg.h"
31#include "opackage.h" 31#include "opackage.h"
32#include "opackagemanager.h" 32#include "opackagemanager.h"
33 33
34#include <qlayout.h> 34#include <qlayout.h>
35#include <qpushbutton.h> 35#include <qpushbutton.h>
36 36
37#include <qpe/resource.h> 37#include <qpe/resource.h>
38 38
39#include <opie2/otabwidget.h> 39#include <opie2/otabwidget.h>
40 40
41using namespace Opie::Ui;
41PackageInfoDlg::PackageInfoDlg( QWidget *parent, OPackageManager *pm, const QString &package ) 42PackageInfoDlg::PackageInfoDlg( QWidget *parent, OPackageManager *pm, const QString &package )
42 : QWidget( 0x0 ) 43 : QWidget( 0x0 )
43 , m_packman( pm ) 44 , m_packman( pm )
44 , m_information( this ) 45 , m_information( this )
45 , m_files( this ) 46 , m_files( this )
46{ 47{
47 // Initialize UI 48 // Initialize UI
48 if ( parent ) 49 if ( parent )
49 parent->setCaption( package ); 50 parent->setCaption( package );
50 51
51 QVBoxLayout *layout = new QVBoxLayout( this, 4, 2 ); 52 QVBoxLayout *layout = new QVBoxLayout( this, 4, 2 );
52 53
53 OTabWidget *tabWidget = new OTabWidget( this ); 54 OTabWidget *tabWidget = new OTabWidget( this );
54 layout->addWidget( tabWidget ); 55 layout->addWidget( tabWidget );
55 56
56 // Information tab 57 // Information tab
57 m_information.reparent( tabWidget, QPoint( 0, 0 ) ); 58 m_information.reparent( tabWidget, QPoint( 0, 0 ) );
58 m_information.setReadOnly( true ); 59 m_information.setReadOnly( true );
59 tabWidget->addTab( &m_information, "UtilsIcon", tr( "Information" ) ); 60 tabWidget->addTab( &m_information, "UtilsIcon", tr( "Information" ) );
60 61
61 // Retrive package information 62 // Retrive package information
62 m_package = m_packman->findPackage( package ); 63 m_package = m_packman->findPackage( package );
63 if ( !m_package ) 64 if ( !m_package )
64 { 65 {