[Kde-bindings] KDE/kdebindings/php/phpqt/examples/trivialwizard
Thomas Moenicke
tm at php-qt.org
Thu Nov 13 22:23:18 UTC 2008
SVN commit 883960 by moenicke:
* fixed trivialwizard example
CCMAIL: kde-bindings at kde.org
M +5 -5 main.php
--- trunk/KDE/kdebindings/php/phpqt/examples/trivialwizard/main.php #883959:883960
@@ -34,10 +34,10 @@
$emailLineEdit = new QLineEdit;
$layout = new QGridLayout;
- $layout->addWidget(nameLabel, 0, 0);
- $layout->addWidget(nameLineEdit, 0, 1);
- $layout->addWidget(emailLabel, 1, 0);
- $layout->addWidget(emailLineEdit, 1, 1);
+ $layout->addWidget($nameLabel, 0, 0);
+ $layout->addWidget($nameLineEdit, 0, 1);
+ $layout->addWidget($emailLabel, 1, 0);
+ $layout->addWidget($emailLineEdit, 1, 1);
$page->setLayout($layout);
return $page;
@@ -65,7 +65,7 @@
$app = new QApplication($argc, $argv);
$translatorFileName = new QString("qt_");
-$translatorFileName += QLocale::system().name();
+$translatorFileName += QLocale->system()->name();
$translator = new QTranslator($app);
if($translator->load($translatorFileName, QLibraryInfo::location(QLibraryInfo::TranslationsPath)))
$app->installTranslator($translator);
More information about the Kde-bindings
mailing list