author | drw <drw> | 2003-04-29 01:09:51 (UTC) |
---|---|---|
committer | drw <drw> | 2003-04-29 01:09:51 (UTC) |
commit | 2f26f696ca6acd05aa615e15d891eede9907a1c0 (patch) (side-by-side diff) | |
tree | 5a0096175cc9879b7d6f8b0f40ad2333d5e52cbe /noncore/settings/aqpkg/packagewin.cpp | |
parent | 63d3f7ca039d93612abaa4a65fc00b337c42ec9d (diff) | |
download | opie-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 (limited to 'noncore/settings/aqpkg/packagewin.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/packagewin.cpp | 16 |
1 files changed, 8 insertions, 8 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 @@ -34,3 +34,2 @@ -#include <qlabel.h> #include <qlayout.h> @@ -38,2 +37,3 @@ #include <qstring.h> +#include <qtextview.h> @@ -42,3 +42,2 @@ PackageWindow::PackageWindow( Package *package, const QString &server ) { - QVBoxLayout *layout = new QVBoxLayout( this, 4, 4 ); QString str; @@ -103,8 +102,10 @@ PackageWindow::PackageWindow( Package *package, const QString &server ) } - - 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 ); @@ -118,2 +119 @@ PackageWindow::~PackageWindow() } - |