[Uml-devel] kdesdk/umbrello/umbrello/dialogs

Laurent Montel montel at kde.org
Thu Dec 18 02:32:01 UTC 2003


CVS commit by mlaurent: 

Fix reverselayout


  M +8 -1      codegenerationwizard.cpp   1.13


--- kdesdk/umbrello/umbrello/dialogs/codegenerationwizard.cpp  #1.12:1.13
@@ -23,4 +23,5 @@
 #include <klocale.h>
 #include <kmessagebox.h>
+#include <qapplication.h>
 
 #include "codegenerationwizard.h"
@@ -71,4 +72,10 @@ CodeGenerationWizard::CodeGenerationWiza
         finishButton()->setText(i18n("&Generate"));
         connect(finishButton(),SIGNAL(clicked()),this,SLOT(generateCode()));
+        if ( QApplication::reverseLayout() )
+        {
+            QPixmap tmpPixmap( *m_addButton->pixmap() );
+            m_addButton->setPixmap(*m_removeButton->pixmap());
+            m_removeButton->setPixmap(tmpPixmap);
+        }
 }
 






More information about the umbrello-devel mailing list