| Home · All Classes · Main Classes · Deprecated |
MMessageBox provides a dialog for informing the user or for asking the user a question. More...


Public Member Functions | |
| MMessageBox (const QString &text=QString(), M::StandardButtons standardButtons=M::OkButton) | |
| MMessageBox (const QString &title, const QString &text, M::StandardButtons buttons=M::OkButton) | |
| QString | text () const |
| void | setText (const QString &text) |
| QString | iconId () const |
| void | setIconId (const QString &iconId) |
| virtual | ~MMessageBox () |
Properties | |
| QString | text |
| QString | iconId |
MMessageBox provides a dialog for informing the user or for asking the user a question.
A MMessageBox is a MDialog that displays text in its central area.
By default a MMessageBox has no central widget, but just the message text in its place. You can still add a central widget to it though, by calling setCentralWidget(). It will then be placed between the title bar and the message text.
Definition at line 38 of file corelib/widgets/mmessagebox.h.
| MMessageBox::MMessageBox | ( | const QString & | text = QString(), |
|
| M::StandardButtons | standardButtons = M::OkButton | |||
| ) |
Constructs a message box with the given text and set of standard buttons.
By default, the title bar will be hidden.
| text | Text to be displayed in the message box. | |
| standardButtons | Standard buttons to be put in the button box. |
Definition at line 31 of file mmessagebox.cpp.
: MDialog(new MMessageBoxPrivate, buttons, new MMessageBoxModel, MSceneWindow::MessageBox) { setText(text); setCentralWidget(0); }

| MMessageBox::MMessageBox | ( | const QString & | title, | |
| const QString & | text, | |||
| M::StandardButtons | buttons = M::OkButton | |||
| ) |
Constructs a message box with the given title, text and set of standard buttons.
| title | Dialog's title to be displayed by the message. | |
| text | Text to be displayed in the message box. | |
| buttons | Standard buttons to be put in the button box. |
Definition at line 39 of file mmessagebox.cpp.
: MDialog(new MMessageBoxPrivate, buttons, new MMessageBoxModel, MSceneWindow::MessageBox) { setTitle(title); setText(text); setCentralWidget(0); }

| MMessageBox::~MMessageBox | ( | ) | [virtual] |
| QString MMessageBox::iconId | ( | ) | const |
| void MMessageBox::setIconId | ( | const QString & | iconId | ) |
Sets the dialog's icon.
| iconId | Logical icon id to be displayed as message box icon. |
Definition at line 67 of file mmessagebox.cpp.
{
model()->setIconId(iconId);
}

| void MMessageBox::setText | ( | const QString & | text | ) |
Sets the dialog's text.
| text | Text to be displayed in the message box. |
Definition at line 57 of file mmessagebox.cpp.
{
model()->setText(text);
}

| QString MMessageBox::text | ( | ) | const |
QString MMessageBox::iconId [read, write] |
Definition at line 44 of file corelib/widgets/mmessagebox.h.
QString MMessageBox::text [read, write] |
Definition at line 43 of file corelib/widgets/mmessagebox.h.
| Copyright © 2010 Nokia Corporation | Generated on Thu Nov 4 2010 18:14:26 (PDT) Doxygen 1.7.1 |
MeeGo Touch |