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 | |||
@@ -29,21 +29,20 @@ | |||
29 | #include "packagewin.h" | 29 | #include "packagewin.h" |
30 | #include "package.h" | 30 | #include "package.h" |
31 | #include "datamgr.h" | 31 | #include "datamgr.h" |
32 | 32 | ||
33 | #include <qpe/resource.h> | 33 | #include <qpe/resource.h> |
34 | 34 | ||
35 | #include <qlabel.h> | ||
36 | #include <qlayout.h> | 35 | #include <qlayout.h> |
37 | #include <qpushbutton.h> | 36 | #include <qpushbutton.h> |
38 | #include <qstring.h> | 37 | #include <qstring.h> |
38 | #include <qtextview.h> | ||
39 | 39 | ||
40 | PackageWindow::PackageWindow( Package *package, const QString &server ) | 40 | PackageWindow::PackageWindow( Package *package, const QString &server ) |
41 | : QWidget( 0, 0, 0 ) | 41 | : QWidget( 0, 0, 0 ) |
42 | { | 42 | { |
43 | QVBoxLayout *layout = new QVBoxLayout( this, 4, 4 ); | ||
44 | QString str; | 43 | QString str; |
45 | if ( package ) | 44 | if ( package ) |
46 | { | 45 | { |
47 | setCaption( package->getPackageName() ); | 46 | setCaption( package->getPackageName() ); |
48 | QString destName; | 47 | QString destName; |
49 | if ( package->getLocalPackage() ) | 48 | if ( package->getLocalPackage() ) |
@@ -98,22 +97,23 @@ PackageWindow::PackageWindow( Package *package, const QString &server ) | |||
98 | } | 97 | } |
99 | else | 98 | else |
100 | { | 99 | { |
101 | setCaption( tr( "Package Information" ) ); | 100 | setCaption( tr( "Package Information" ) ); |
102 | str = tr( "Package information is unavailable" ); | 101 | str = tr( "Package information is unavailable" ); |
103 | } | 102 | } |
104 | 103 | ||
105 | QLabel *l = new QLabel( str, this ); | 104 | QVBoxLayout *layout = new QVBoxLayout( this, 4, 4 ); |
106 | l->setTextFormat( Qt::RichText ); | 105 | |
107 | l->setAlignment( Qt::AlignLeft | Qt::AlignVCenter | Qt::WordBreak ); | 106 | QTextView *l = new QTextView( str, QString::null, this ); |
107 | //l->setTextFormat( Qt::RichText ); | ||
108 | //l->setAlignment( Qt::AlignLeft | Qt::AlignVCenter | Qt::WordBreak ); | ||
108 | layout->addWidget( l ); | 109 | layout->addWidget( l ); |
109 | 110 | ||
110 | QPushButton *btn = new QPushButton( Resource::loadPixmap( "enter" ), tr( "Close" ), this ); | 111 | QPushButton *btn = new QPushButton( Resource::loadPixmap( "enter" ), tr( "Close" ), this ); |
111 | layout->addWidget( btn ); | 112 | layout->addWidget( btn ); |
112 | connect( btn, SIGNAL( clicked() ), this, SLOT( close() ) ); | 113 | connect( btn, SIGNAL( clicked() ), this, SLOT( close() ) ); |
113 | 114 | ||
114 | } | 115 | } |
115 | 116 | ||
116 | PackageWindow::~PackageWindow() | 117 | PackageWindow::~PackageWindow() |
117 | { | 118 | { |
118 | } | 119 | } |
119 | |||