summaryrefslogtreecommitdiffstats
path: root/src/UiGuiErrorMessage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/UiGuiErrorMessage.cpp')
-rw-r--r--[-rwxr-xr-x]src/UiGuiErrorMessage.cpp64
1 files changed, 35 insertions, 29 deletions
diff --git a/src/UiGuiErrorMessage.cpp b/src/UiGuiErrorMessage.cpp
index fa04a7c..67e8e0c 100755..100644
--- a/src/UiGuiErrorMessage.cpp
+++ b/src/UiGuiErrorMessage.cpp
@@ -36,20 +36,21 @@
Retrieves the object pointer to the \a _showAgainCheckBox check box, sets the dialogs
modality and for a working translation sets the check box text.
*/
-UiGuiErrorMessage::UiGuiErrorMessage(TQWidget *parent) : TQErrorMessage(parent) {
- _showAgainCheckBox = findChild<TQCheckBox *>();
- setWindowModality( TQt::ApplicationModal );
- _showAgainCheckBox->setText( tr("Show this message again") );
+UiGuiErrorMessage::UiGuiErrorMessage(TQWidget *parent) :
+ TQErrorMessage(parent)
+{
+ _showAgainCheckBox = findChild<TQCheckBox*>();
+ setWindowModality(TQt::ApplicationModal);
+ _showAgainCheckBox->setText(tr("Show this message again"));
}
-
/*!
\brief Just a lazy nothin doin destructive destructor.
*/
-UiGuiErrorMessage::~UiGuiErrorMessage(void) {
+UiGuiErrorMessage::~UiGuiErrorMessage(void)
+{
}
-
/*!
\brief Shows an error \a message in a dialog box with \a title.
@@ -57,31 +58,36 @@ UiGuiErrorMessage::~UiGuiErrorMessage(void) {
already in that list and "Show this message again" is not checked, that
message will not be shown.
*/
-void UiGuiErrorMessage::showMessage( const TQString &title, const TQString &message ) {
- bool showAgain = true;
-
- if ( _showAgainCheckBox != 0 ) {
- showAgain = _showAgainCheckBox->isChecked();
- }
-
- setWindowTitle(title);
-
- if ( !_errorMessageList.contains(message) ) {
- _errorMessageList << message;
- if ( _showAgainCheckBox != 0 ) {
- _showAgainCheckBox->setChecked(true);
- }
- TQErrorMessage::showMessage( message );
- }
- else if ( showAgain ) {
- TQErrorMessage::showMessage( message );
- }
+void UiGuiErrorMessage::showMessage(const TQString &title, const TQString &message)
+{
+ bool showAgain = true;
+
+ if (_showAgainCheckBox != 0)
+ {
+ showAgain = _showAgainCheckBox->isChecked();
+ }
+
+ setWindowTitle(title);
+
+ if (!_errorMessageList.contains(message))
+ {
+ _errorMessageList << message;
+ if (_showAgainCheckBox != 0)
+ {
+ _showAgainCheckBox->setChecked(true);
+ }
+ TQErrorMessage::showMessage(message);
+ }
+ else if (showAgain)
+ {
+ TQErrorMessage::showMessage(message);
+ }
}
-
/*!
\brief For convinience, for showing a dialog box with the default title "UniversalIndentGUI".
*/
-void UiGuiErrorMessage::showMessage( const TQString &message ) {
- showMessage( "UniversalIndentGUI", message );
+void UiGuiErrorMessage::showMessage(const TQString &message)
+{
+ showMessage("UniversalIndentGUI", message);
}