src/gui/dialogs/qmessagebox.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
   186 #endif
   186 #endif
   187     bool compatMode;
   187     bool compatMode;
   188     bool autoAddOkButton;
   188     bool autoAddOkButton;
   189     QAbstractButton *detectedEscapeButton;
   189     QAbstractButton *detectedEscapeButton;
   190     QLabel *informativeLabel;
   190     QLabel *informativeLabel;
       
   191 #ifdef Q_OS_SYMBIAN
       
   192     QTextEdit *textEdit;
       
   193 #endif
   191     QPointer<QObject> receiverToDisconnectOnClose;
   194     QPointer<QObject> receiverToDisconnectOnClose;
   192     QByteArray memberToDisconnectOnClose;
   195     QByteArray memberToDisconnectOnClose;
   193     QByteArray signalToDisconnectOnClose;
   196     QByteArray signalToDisconnectOnClose;
   194 };
   197 };
   195 
   198 
  2457         // apply a smaller font the information label on the mac
  2460         // apply a smaller font the information label on the mac
  2458         label->setFont(qt_app_fonts_hash()->value("QTipLabel"));
  2461         label->setFont(qt_app_fonts_hash()->value("QTipLabel"));
  2459 #endif
  2462 #endif
  2460         label->setWordWrap(true);
  2463         label->setWordWrap(true);
  2461         QGridLayout *grid = static_cast<QGridLayout *>(layout());
  2464         QGridLayout *grid = static_cast<QGridLayout *>(layout());
       
  2465 #ifdef Q_OS_SYMBIAN
       
  2466         label->hide();
       
  2467         QTextEdit *textEdit = new QTextEdit(this);
       
  2468         textEdit->setReadOnly(true);
       
  2469         grid->addWidget(textEdit, 1, 1, 1, 1);
       
  2470         d->textEdit = textEdit;
       
  2471 #else
  2462         grid->addWidget(label, 1, 1, 1, 1);
  2472         grid->addWidget(label, 1, 1, 1, 1);
       
  2473 #endif
  2463         d->informativeLabel = label;
  2474         d->informativeLabel = label;
  2464     }
  2475     }
  2465     d->informativeLabel->setText(text);
  2476     d->informativeLabel->setText(text);
       
  2477 
       
  2478 #ifdef Q_OS_SYMBIAN
       
  2479     //We need to put the informative label inside textEdit to enable scrolling of long texts.
       
  2480     d->textEdit->setText(d->informativeLabel->text());
       
  2481 #endif
       
  2482 
  2466     d->updateSize();
  2483     d->updateSize();
  2467 }
  2484 }
  2468 
  2485 
  2469 /*!
  2486 /*!
  2470     \since 4.2
  2487     \since 4.2