44 #ifndef QT_NO_ERRORMESSAGE 71 #if defined(QT_SOFTKEYS_ENABLED) 75 #include "private/qt_s60_p.h" 88 #ifdef QT_SOFTKEYS_ENABLED 105 :
QTextEdit(parent) { setReadOnly(
true); }
107 virtual QSize minimumSizeHint()
const;
108 virtual QSize sizeHint()
const;
116 return QSize(200, 200);
118 return QSize(100, 100);
120 return QSize(70, 70);
122 return QSize(50, 50);
131 return QSize(400, 200);
133 return QSize(320, 120);
135 return QSize(300, 100);
139 const int smallerDimension =
qMin(S60->screenHeightInPixels, S60->screenWidthInPixels);
141 return QSize(smallerDimension, smallerDimension/3-2);
143 return QSize(250, 75);
193 if (qtMessageHandler) {
195 qtMessageHandler = 0;
203 if (!qtMessageHandler)
251 #ifndef QT_NO_MESSAGEBOX 260 const int preferredIconColumn = 0;
261 const int preferredTextColumn = 1;
265 grid->
addWidget(
d->errors, 0, preferredTextColumn);
267 d->again->setChecked(
true);
270 #ifdef QT_SOFTKEYS_ENABLED 278 #if defined(Q_WS_WINCE) || defined(Q_WS_S60) 279 d->ok->setFixedSize(0,0);
286 d->retranslateStrings();
296 if (
this == qtMessageHandler) {
297 qtMessageHandler = 0;
311 if (!
d->again->isChecked() && !
d->currentMessage.isEmpty() &&
d->currentType.isEmpty()) {
312 d->doNotShow.insert(
d->currentMessage);
314 if (!
d->again->isChecked() && !
d->currentType.isEmpty()) {
315 d->doNotShowType.insert(
d->currentType);
317 d->currentMessage.clear();
318 d->currentType.clear();
319 if (!
d->nextPending()) {
321 if (
this == qtMessageHandler &&
metFatal)
335 if (!qtMessageHandler) {
349 while (!pending.isEmpty()) {
353 if (!message.
isEmpty() && ((type.
isEmpty() && !doNotShow.contains(message)) || (!type.
isEmpty() && !doNotShowType.contains(type)))) {
354 #ifndef QT_NO_TEXTHTMLPARSER 355 errors->setHtml(message);
357 errors->setPlainText(message);
359 currentMessage = message;
380 if (
d->doNotShow.contains(message))
407 if (
d->doNotShow.contains(message) &&
d->doNotShowType.contains(type))
409 d->pending.push_back(
qMakePair(message,type));
421 d->retranslateStrings();
430 #ifdef QT_SOFTKEYS_ENABLED 431 okAction->setText(ok->text());
446 #endif // QT_NO_ERRORMESSAGE
static Qt::LayoutDirection layoutDirection()
static void jump(QtMsgType t, const char *m)
static QPixmap standardIcon(Icon icon)
Returns the pixmap used for a standard icon.
Q_DECL_CONSTEXPR const T & qMin(const T &a, const T &b)
#define QT_END_NAMESPACE
This macro expands to.
The QQueue class is a generic container that provides a queue.
Q_GUI_EXPORT QString convertFromPlainText(const QString &plain, WhiteSpaceMode mode=WhiteSpacePre)
Converts the plain text string plain to an HTML-formatted paragraph while preserving most of its look...
void qAddPostRoutine(QtCleanUpFunction p)
The QDialog class is the base class of dialog windows.
static void deleteStaticcQErrorMessage()
void chop(int n)
Removes n characters from the end of the string.
QSet< QString > doNotShow
virtual void accept()
Hides the modal dialog and sets the result code to Accepted.
~QErrorMessage()
Destroys the error message dialog.
#define Q_ARG(type, data)
static QString tr(const char *sourceText, const char *comment=0, int n=-1)
QQueue< QPair< QString, QString > > pending
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
void done(int)
Reimplemented Function
long ASN1_INTEGER_get ASN1_INTEGER * a
void(* QtMsgHandler)(QtMsgType, const char *)
virtual QSize minimumSizeHint() const
QErrorMessage(QWidget *parent=0)
Constructs and installs an error handler window with the given parent.
The QString class provides a Unicode character string.
QtMsgType
This enum describes the messages that can be sent to a message handler (QtMsgHandler).
bool qt_wince_is_high_dpi()
static QThread * currentThread()
Returns a pointer to a QThread which manages the currently executing thread.
#define QT_BEGIN_NAMESPACE
This macro expands to.
static QErrorMessage * qtHandler()
Returns a pointer to a QErrorMessage object that outputs the default Qt messages. ...
static bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
Creates a connection of the given type from the signal in the sender object to the method in the rece...
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
static QErrorMessage * qtMessageHandler
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal...
void retranslateStrings()
virtual QSize sizeHint() const
void showMessage(const QString &message)
Shows the given message, message, and returns immediately.
virtual void done(int)
Closes the dialog and sets its result code to r.
QString arg(qlonglong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
#define Q_DECLARE_PUBLIC(Class)
QErrorMessageTextView(QWidget *parent)
void setColumnStretch(int column, int stretch)
Sets the stretch factor of column column to stretch.
QtMsgHandler qInstallMsgHandler(QtMsgHandler h)
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
void changeEvent(QEvent *e)
Reimplemented Function
Q_OUTOFLINE_TEMPLATE QPair< T1, T2 > qMakePair(const T1 &x, const T2 &y)
The QGridLayout class lays out widgets in a grid.
The QLabel widget provides a text or image display.
bool qt_wince_is_mobile()
The QErrorMessage class provides an error message display dialog.
The QSize class defines the size of a two-dimensional object using integer point precision.
void setRowStretch(int row, int stretch)
Sets the stretch factor of row row to stretch.
QSet< QString > doNotShowType
void addWidget(QWidget *w)
This is an overloaded member function, provided for convenience. It differs from the above function o...
static QString applicationName()
bool endsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string ends with s; otherwise returns false.
The QCheckBox widget provides a checkbox with a text label.
The QEvent class is the base class of all event classes.
Type type() const
Returns the event type.
The QAction class provides an abstract user interface action that can be inserted into widgets...
The QTextEdit class provides a widget that is used to edit and display both plain and rich text...