summaryrefslogtreecommitdiff
authordrw <drw>2003-04-29 01:09:51 (UTC)
committer drw <drw>2003-04-29 01:09:51 (UTC)
commit2f26f696ca6acd05aa615e15d891eede9907a1c0 (patch) (side-by-side diff)
tree5a0096175cc9879b7d6f8b0f40ad2333d5e52cbe
parent63d3f7ca039d93612abaa4a65fc00b337c42ec9d (diff)
downloadopie-2f26f696ca6acd05aa615e15d891eede9907a1c0.zip
opie-2f26f696ca6acd05aa615e15d891eede9907a1c0.tar.gz
opie-2f26f696ca6acd05aa615e15d891eede9907a1c0.tar.bz2
Now use QTextView for package information. This is for scroll through long package descriptions (e.g. OZ busybox).
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/packagewin.cpp16
-rw-r--r--noncore/settings/aqpkg/packagewin.h4
2 files changed, 10 insertions, 10 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() )
@@ -98,22 +97,23 @@ 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()
{
}
-
diff --git a/noncore/settings/aqpkg/packagewin.h b/noncore/settings/aqpkg/packagewin.h
index c1943b5..b4fdcad 100644
--- a/noncore/settings/aqpkg/packagewin.h
+++ b/noncore/settings/aqpkg/packagewin.h
@@ -33,13 +33,13 @@
class Package;
class PackageWindow :public QWidget
{
Q_OBJECT
-public:
+public:
PackageWindow( Package * = 0x0, const QString & = QString::null );
~PackageWindow();
};
-#endif \ No newline at end of file
+#endif