SVN: PLDSetupAssistant: PLDSetupAssistant.cpp PLDSetupAssistant.h

shadzik shadzik at pld-linux.org
Tue May 11 00:12:46 CEST 2010


Author: shadzik
Date: Tue May 11 00:12:46 2010
New Revision: 11434

Modified:
   PLDSetupAssistant/PLDSetupAssistant.cpp
   PLDSetupAssistant/PLDSetupAssistant.h
Log:
- more informativ page names


Modified: PLDSetupAssistant/PLDSetupAssistant.cpp
==============================================================================
--- PLDSetupAssistant/PLDSetupAssistant.cpp	(original)
+++ PLDSetupAssistant/PLDSetupAssistant.cpp	Tue May 11 00:12:46 2010
@@ -94,9 +94,9 @@
     keyboardWidget->setLayout(keyboardLayout);
     keyboardWidget->setSizePolicy(QSizePolicy::Fixed,QSizePolicy::Fixed);
     
-    page1 = addPage(keyboardWidget, i18n("Step One: Choose your keyboard layout"));
+    kblayoutPage = addPage(keyboardWidget, i18n("Step One: Choose your keyboard layout"));
     //setValid(page1, false);
-    setAppropriate(page1, true);
+    setAppropriate(kblayoutPage, true);
     
     //keyboardDialog->button(KDialog::Apply)->click();
 
@@ -110,7 +110,7 @@
     clockWidget->setLayout(clockLayout);
     clockWidget->setSizePolicy(QSizePolicy::Fixed,QSizePolicy::Fixed);
     
-    page2 = addPage(clockWidget, i18n("Step Two: Choose your timezone and setup the clock"));
+    clockPage = addPage(clockWidget, i18n("Step Two: Choose your timezone and setup the clock"));
     //addPage(page2,i18n("Step Two: Account Information"));
 
     //dlg->buttonClicked(KDialog::Apply);
@@ -148,10 +148,10 @@
 
 void StartAssistant::next()
 {
-      if (currentPage() == page1)
+      if (currentPage() == kblayoutPage)
 	keyboardDialog->button(KDialog::Apply)->click();
 
-      if (currentPage() == page2)
+      if (currentPage() == clockPage)
 	clockDialog->button(KDialog::Apply)->click();
 
       KAssistantDialog::next();

Modified: PLDSetupAssistant/PLDSetupAssistant.h
==============================================================================
--- PLDSetupAssistant/PLDSetupAssistant.h	(original)
+++ PLDSetupAssistant/PLDSetupAssistant.h	Tue May 11 00:12:46 2010
@@ -30,8 +30,8 @@
 
     KCMultiDialog *clockDialog;
     KCMultiDialog *keyboardDialog;
-    KPageWidgetItem *page1;
-    KPageWidgetItem *page2;
+    KPageWidgetItem *kblayoutPage;
+    KPageWidgetItem *clockPage;
 
     KCMultiDialog* kcmDialog(const QString lib, const QString name = "");
 


More information about the pld-cvs-commit mailing list