summaryrefslogtreecommitdiff
path: root/noncore/settings/aqpkg/packagewin.cpp
Unidiff
Diffstat (limited to 'noncore/settings/aqpkg/packagewin.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/packagewin.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/noncore/settings/aqpkg/packagewin.cpp b/noncore/settings/aqpkg/packagewin.cpp
index 7971ccc..9553cd1 100644
--- a/noncore/settings/aqpkg/packagewin.cpp
+++ b/noncore/settings/aqpkg/packagewin.cpp
@@ -1,28 +1,29 @@
1/* 1/*
2                This file is part of the OPIE Project 2                This file is part of the OPIE Project
3 =. 3
4             .=l. Copyright (c) 2002 OPIE team <opie@handhelds.org?> 4 =. Copyright (c) 2002 Andy Qua <andy.qua@blueyonder.co.uk>
5             .=l. Dan Williams <drw@handhelds.org>
5           .>+-= 6           .>+-=
6 _;:,     .>    :=|. This file is free software; you can 7 _;:,     .>    :=|. This file is free software; you can
7.> <`_,   >  .   <= redistribute it and/or modify it under 8.> <`_,   >  .   <= redistribute it and/or modify it under
8:`=1 )Y*s>-.--   : the terms of the GNU General Public 9:`=1 )Y*s>-.--   : the terms of the GNU General Public
9.="- .-=="i,     .._ License as published by the Free Software 10.="- .-=="i,     .._ License as published by the Free Software
10 - .   .-<_>     .<> Foundation; either version 2 of the License, 11 - .   .-<_>     .<> Foundation; either version 2 of the License,
11     ._= =}       : or (at your option) any later version. 12     ._= =}       : or (at your option) any later version.
12    .%`+i>       _;_. 13    .%`+i>       _;_.
13    .i_,=:_.      -<s. This file is distributed in the hope that 14    .i_,=:_.      -<s. This file is distributed in the hope that
14     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 15     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
15    : ..    .:,     . . . without even the implied warranty of 16    : ..    .:,     . . . without even the implied warranty of
16    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 17    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
17  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU General 18  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU General
18..}^=.=       =       ; Public License for more details. 19..}^=.=       =       ; Public License for more details.
19++=   -.     .`     .: 20++=   -.     .`     .:
20 :     =  ...= . :.=- You should have received a copy of the GNU 21 :     =  ...= . :.=- You should have received a copy of the GNU
21 -.   .:....=;==+<; General Public License along with this file; 22 -.   .:....=;==+<; General Public License along with this file;
22  -_. . .   )=.  = see the file COPYING. If not, write to the 23  -_. . .   )=.  = see the file COPYING. If not, write to the
23    --        :-=` Free Software Foundation, Inc., 24    --        :-=` Free Software Foundation, Inc.,
24 59 Temple Place - Suite 330, 25 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA. 26 Boston, MA 02111-1307, USA.
26 27
27*/ 28*/
28 29
@@ -83,37 +84,35 @@ PackageWindow::PackageWindow( Package *package, const QString &server )
83 } 84 }
84 else 85 else
85 { 86 {
86 str.append( tr( "<p><b>Version Available</b> - " ) ); 87 str.append( tr( "<p><b>Version Available</b> - " ) );
87 str.append( package->getVersion() ); 88 str.append( package->getVersion() );
88 if ( package->getLocalPackage() ) 89 if ( package->getLocalPackage() )
89 { 90 {
90 if ( package->isInstalled() ) 91 if ( package->isInstalled() )
91 { 92 {
92 str.append( tr( "<p><b>Version Installed</b> - " ) ); 93 str.append( tr( "<p><b>Version Installed</b> - " ) );
93 str.append( package->getInstalledVersion() ); 94 str.append( package->getInstalledVersion() );
94 } 95 }
95 } 96 }
96 } 97 }
97 } 98 }
98 else 99 else
99 { 100 {
100 setCaption( tr( "Package Information" ) ); 101 setCaption( tr( "Package Information" ) );
101 str = tr( "Package information is unavailable" ); 102 str = tr( "Package information is unavailable" );
102 } 103 }
103 104
104 QVBoxLayout *layout = new QVBoxLayout( this, 4, 4 ); 105 QVBoxLayout *layout = new QVBoxLayout( this, 4, 4 );
105 106
106 QTextView *l = new QTextView( str, QString::null, this ); 107 QTextView *l = new QTextView( str, QString::null, this );
107 //l->setTextFormat( Qt::RichText );
108 //l->setAlignment( Qt::AlignLeft | Qt::AlignVCenter | Qt::WordBreak );
109 layout->addWidget( l ); 108 layout->addWidget( l );
110 109
111 QPushButton *btn = new QPushButton( Resource::loadPixmap( "enter" ), tr( "Close" ), this ); 110 QPushButton *btn = new QPushButton( Resource::loadPixmap( "enter" ), tr( "Close" ), this );
112 layout->addWidget( btn ); 111 layout->addWidget( btn );
113 connect( btn, SIGNAL( clicked() ), this, SLOT( close() ) ); 112 connect( btn, SIGNAL( clicked() ), this, SLOT( close() ) );
114 113
115} 114}
116 115
117PackageWindow::~PackageWindow() 116PackageWindow::~PackageWindow()
118{ 117{
119} 118}