summaryrefslogtreecommitdiff
path: root/noncore/settings/aqpkg/packagewin.cpp
Side-by-side diff
Diffstat (limited to 'noncore/settings/aqpkg/packagewin.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/aqpkg/packagewin.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/noncore/settings/aqpkg/packagewin.cpp b/noncore/settings/aqpkg/packagewin.cpp
index f00453e..7971ccc 100644
--- a/noncore/settings/aqpkg/packagewin.cpp
+++ b/noncore/settings/aqpkg/packagewin.cpp
@@ -29,21 +29,20 @@
#include "packagewin.h"
#include "package.h"
#include "datamgr.h"
#include <qpe/resource.h>
-#include <qlabel.h>
#include <qlayout.h>
#include <qpushbutton.h>
#include <qstring.h>
+#include <qtextview.h>
PackageWindow::PackageWindow( Package *package, const QString &server )
: QWidget( 0, 0, 0 )
{
- QVBoxLayout *layout = new QVBoxLayout( this, 4, 4 );
QString str;
if ( package )
{
setCaption( package->getPackageName() );
QString destName;
if ( package->getLocalPackage() )
@@ -99,21 +98,22 @@ PackageWindow::PackageWindow( Package *package, const QString &server )
else
{
setCaption( tr( "Package Information" ) );
str = tr( "Package information is unavailable" );
}
- QLabel *l = new QLabel( str, this );
- l->setTextFormat( Qt::RichText );
- l->setAlignment( Qt::AlignLeft | Qt::AlignVCenter | Qt::WordBreak );
+ QVBoxLayout *layout = new QVBoxLayout( this, 4, 4 );
+
+ QTextView *l = new QTextView( str, QString::null, this );
+ //l->setTextFormat( Qt::RichText );
+ //l->setAlignment( Qt::AlignLeft | Qt::AlignVCenter | Qt::WordBreak );
layout->addWidget( l );
QPushButton *btn = new QPushButton( Resource::loadPixmap( "enter" ), tr( "Close" ), this );
layout->addWidget( btn );
connect( btn, SIGNAL( clicked() ), this, SLOT( close() ) );
}
PackageWindow::~PackageWindow()
{
}
-