[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/kdeui
From: Harald Fernengel <harald () trolltech ! com>
Date: 2002-12-16 17:36:59
[Download RAW message or body]
CVS commit by harald:
use a r/o QTextEdit if the details message is longer than 512 characters
M +10 -4 kmessagebox.cpp 1.63
--- kdelibs/kdeui/kmessagebox.cpp #1.62:1.63
@@ -185,6 +185,12 @@ static int createKMessageBox(KDialogBase
{
QVGroupBox *detailsGroup = new QVGroupBox( i18n("Details:"), dialog);
+ if ( details.length() < 512 ) {
QLabel *label3 = new QLabel(details, detailsGroup);
label3->setMinimumSize(label3->sizeHint());
+ } else {
+ QTextEdit* te = new QTextEdit(details, QString::null, detailsGroup);
+ te->setReadOnly( true );
+ te->setMinimumHeight( te->fontMetrics().lineSpacing() * 11 );
+ }
dialog->setDetailsWidget(detailsGroup);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic