[PC-BSD Commits] r15596 - pcbsd/current/src-qt4/pc-usermanager

svn at pcbsd.org svn at pcbsd.org
Sat Feb 25 09:14:31 PST 2012


Author: tim
Date: 2012-02-25 17:14:31 +0000 (Sat, 25 Feb 2012)
New Revision: 15596

Modified:
   pcbsd/current/src-qt4/pc-usermanager/adddlgcode.cpp
   pcbsd/current/src-qt4/pc-usermanager/maindlgcode.cpp
   pcbsd/current/src-qt4/pc-usermanager/simpleaddcode.cpp
Log:
Some of the dialogs have their title in the body, and body in the title. QMessageBox API must have changed as some point?

Modified: pcbsd/current/src-qt4/pc-usermanager/adddlgcode.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-usermanager/adddlgcode.cpp	2012-02-25 16:29:42 UTC (rev 15595)
+++ pcbsd/current/src-qt4/pc-usermanager/adddlgcode.cpp	2012-02-25 17:14:31 UTC (rev 15596)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2007 by Tim McCormick   *
+ *   Copyright (C) 2007, 2012 by Tim McCormick   *
  *   tim at pcbsd.org   *
  *                                                                         *
  *   Permission is hereby granted, free of charge, to any person obtaining *
@@ -296,7 +296,7 @@
    if (inputError)
    {
        //Throw up the error box!
-       QMessageBox::critical(this, inputText, tr("Error!"));
+       QMessageBox::critical(this, tr("Error!"), inputText);
    }
    else
    {

Modified: pcbsd/current/src-qt4/pc-usermanager/maindlgcode.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-usermanager/maindlgcode.cpp	2012-02-25 16:29:42 UTC (rev 15595)
+++ pcbsd/current/src-qt4/pc-usermanager/maindlgcode.cpp	2012-02-25 17:14:31 UTC (rev 15596)
@@ -246,13 +246,13 @@
         switch(valid)
         {
             case 1:
-                QMessageBox::critical(this, tr("You must specify a name for your group"), tr("Error adding group..."));
+                QMessageBox::critical(this, tr("Error adding group..."), tr("You must specify a name for your group"));
                 break;
             case 2:
-                QMessageBox::critical(this, tr("Invalid group name specified. Group names may contain only letters and number. Spaces are NOT permitted"), tr("Error adding group..."));
+                QMessageBox::critical(this, tr("Error adding group..."), tr("Invalid group name specified. Group names may contain only letters and number. Spaces are NOT permitted"));
                 break;
             case 3:
-                QMessageBox::critical(this, tr("The group '") + group + tr("' already exists, please choose a different name"), tr("Error adding group..."));
+                QMessageBox::critical(this, tr("Error adding group..."), tr("The group '") + group + tr("' already exists, please choose a different name"));
                 break;
         }
         

Modified: pcbsd/current/src-qt4/pc-usermanager/simpleaddcode.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-usermanager/simpleaddcode.cpp	2012-02-25 16:29:42 UTC (rev 15595)
+++ pcbsd/current/src-qt4/pc-usermanager/simpleaddcode.cpp	2012-02-25 17:14:31 UTC (rev 15596)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2007 by Tim McCormick   *
+ *   Copyright (C) 2007, 2012 by Tim McCormick   *
  *   tim at pcbsd.org   *
  *                                                                         *
  *   Permission is hereby granted, free of charge, to any person obtaining *
@@ -204,7 +204,7 @@
    if (inputError)
    {
        //Throw up the error box!
-       QMessageBox::critical(this, inputText, tr("Error!"));
+       QMessageBox::critical(this, tr("Error!"), inputText);
    }
    else
    {



More information about the Commits mailing list