-rw-r--r-- | noncore/settings/aqpkg/packagewin.cpp | 16 | ||||
-rw-r--r-- | noncore/settings/aqpkg/packagewin.h | 4 |
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 @@ -33,13 +33,12 @@ #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 ) @@ -102,10 +101,12 @@ PackageWindow::PackageWindow( Package *package, const QString &server ) 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 ); @@ -117,3 +118,2 @@ 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 @@ -37,9 +37,9 @@ class PackageWindow :public QWidget { Q_OBJECT -public: +public: PackageWindow( Package * = 0x0, const QString & = QString::null ); ~PackageWindow(); }; -#endif
\ No newline at end of file +#endif |