Diffstat (limited to 'noncore/settings/packagemanager/packageinfodlg.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/packagemanager/packageinfodlg.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/noncore/settings/packagemanager/packageinfodlg.cpp b/noncore/settings/packagemanager/packageinfodlg.cpp index e034f34..8b1b203 100644 --- a/noncore/settings/packagemanager/packageinfodlg.cpp +++ b/noncore/settings/packagemanager/packageinfodlg.cpp | |||
@@ -23,28 +23,27 @@ | |||
23 | -. .:....=;==+<; You should have received a copy of the GNU | 23 | -. .:....=;==+<; You should have received a copy of the GNU |
24 | -_. . . )=. = Library General Public License along with | 24 | -_. . . )=. = Library General Public License along with |
25 | -- :-=` this library; see the file COPYING.LIB. | 25 | -- :-=` this library; see the file COPYING.LIB. |
26 | If not, write to the Free Software Foundation, | 26 | If not, write to the Free Software Foundation, |
27 | Inc., 59 Temple Place - Suite 330, | 27 | Inc., 59 Temple Place - Suite 330, |
28 | Boston, MA 02111-1307, USA. | 28 | Boston, MA 02111-1307, USA. |
29 | */ | 29 | */ |
30 | 30 | ||
31 | #include "packageinfodlg.h" | 31 | #include "packageinfodlg.h" |
32 | #include "opackage.h" | 32 | #include "opackage.h" |
33 | #include "opackagemanager.h" | 33 | #include "opackagemanager.h" |
34 | 34 | ||
35 | #include <opie2/oresource.h> | ||
35 | #include <opie2/otabwidget.h> | 36 | #include <opie2/otabwidget.h> |
36 | 37 | ||
37 | #include <qpe/resource.h> | ||
38 | |||
39 | #include <qlayout.h> | 38 | #include <qlayout.h> |
40 | #include <qpushbutton.h> | 39 | #include <qpushbutton.h> |
41 | #include <qwhatsthis.h> | 40 | #include <qwhatsthis.h> |
42 | 41 | ||
43 | PackageInfoDlg::PackageInfoDlg( QWidget *parent, OPackageManager *pm, const QString &package ) | 42 | PackageInfoDlg::PackageInfoDlg( QWidget *parent, OPackageManager *pm, const QString &package ) |
44 | : QWidget( 0l ) | 43 | : QWidget( 0l ) |
45 | , m_packman( pm ) | 44 | , m_packman( pm ) |
46 | , m_information( this ) | 45 | , m_information( this ) |
47 | , m_files( this ) | 46 | , m_files( this ) |
48 | , m_retrieveFiles( 0l ) | 47 | , m_retrieveFiles( 0l ) |
49 | { | 48 | { |
50 | // Initialize UI | 49 | // Initialize UI |
@@ -87,26 +86,27 @@ PackageInfoDlg::PackageInfoDlg( QWidget *parent, OPackageManager *pm, const QStr | |||
87 | QWidget *filesWidget = new QWidget( tabWidget ); | 86 | QWidget *filesWidget = new QWidget( tabWidget ); |
88 | QVBoxLayout *filesLayout = new QVBoxLayout( filesWidget, 2, 2 ); | 87 | QVBoxLayout *filesLayout = new QVBoxLayout( filesWidget, 2, 2 ); |
89 | QWhatsThis::add( &m_files, tr( "This area contains a list of files contained in this package." ) ); | 88 | QWhatsThis::add( &m_files, tr( "This area contains a list of files contained in this package." ) ); |
90 | m_files.reparent( filesWidget, QPoint( 0, 0 ) ); | 89 | m_files.reparent( filesWidget, QPoint( 0, 0 ) ); |
91 | m_files.setReadOnly( true ); | 90 | m_files.setReadOnly( true ); |
92 | filesLayout->addWidget( &m_files ); | 91 | filesLayout->addWidget( &m_files ); |
93 | 92 | ||
94 | // If file list is already cached, display | 93 | // If file list is already cached, display |
95 | if ( !m_package->files().isNull() ) | 94 | if ( !m_package->files().isNull() ) |
96 | m_files.setText( m_package->files() ); | 95 | m_files.setText( m_package->files() ); |
97 | else | 96 | else |
98 | { | 97 | { |
99 | m_retrieveFiles = new QPushButton( Resource::loadPixmap( "packagemanager/apply" ), | 98 | m_retrieveFiles = new QPushButton( Opie::Core::OResource::loadPixmap( "packagemanager/apply", |
100 | tr( "Retrieve file list" ), filesWidget ); | 99 | Opie::Core::OResource::SmallIcon ), tr( "Retrieve file list" ), |
100 | filesWidget ); | ||
101 | QWhatsThis::add( m_retrieveFiles, tr( "Tap here to retrieve list of files contained in this package." ) ); | 101 | QWhatsThis::add( m_retrieveFiles, tr( "Tap here to retrieve list of files contained in this package." ) ); |
102 | filesLayout->addWidget( m_retrieveFiles ); | 102 | filesLayout->addWidget( m_retrieveFiles ); |
103 | connect( m_retrieveFiles, SIGNAL(clicked()), this, SLOT(slotBtnFileScan()) ); | 103 | connect( m_retrieveFiles, SIGNAL(clicked()), this, SLOT(slotBtnFileScan()) ); |
104 | } | 104 | } |
105 | 105 | ||
106 | tabWidget->addTab( filesWidget, "binary", tr( "File list" ) ); | 106 | tabWidget->addTab( filesWidget, "binary", tr( "File list" ) ); |
107 | tabWidget->setCurrentTab( tr( "Information" ) ); | 107 | tabWidget->setCurrentTab( tr( "Information" ) ); |
108 | 108 | ||
109 | } | 109 | } |
110 | else | 110 | else |
111 | m_files.hide(); | 111 | m_files.hide(); |
112 | } | 112 | } |