[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdelibs/frameworks] tier1/kwidgetsaddons/tests: Fix compilation
From:       David Faure <faure+bluesystems () kde ! org>
Date:       2013-07-28 13:22:43
Message-ID: E1V3Qvr-0004cY-D7 () scm ! kde ! org
[Download RAW message or body]

Git commit 973a57513993a55973a113aec12f9bebc12ab333 by David Faure.
Committed on 28/07/2013 at 13:26.
Pushed by dfaure into branch 'frameworks'.

Fix compilation

M  +5    -12   tier1/kwidgetsaddons/tests/knewpassworddialogtest.cpp

http://commits.kde.org/kdelibs/973a57513993a55973a113aec12f9bebc12ab333

diff --git a/tier1/kwidgetsaddons/tests/knewpassworddialogtest.cpp b/tier1/=
kwidgetsaddons/tests/knewpassworddialogtest.cpp
index ae03442..f7f7d5c 100644
--- a/tier1/kwidgetsaddons/tests/knewpassworddialogtest.cpp
+++ b/tier1/kwidgetsaddons/tests/knewpassworddialogtest.cpp
@@ -19,27 +19,20 @@
 =

 #include <qapplication.h>
 #include <knewpassworddialog.h>
-#include <klocalizedstring.h>
 #include <iostream>
 =

 int main( int argc, char *argv[] )
 {
-	QApplication::setColorSpec( QApplication::CustomColor );
-    QApplication::setApplicationName("KNewPasswordDialogTest");
-
     QApplication a(argc, argv);
 =

-	KNewPasswordDialog dlg;
+    KNewPasswordDialog dlg;
     dlg.setPasswordStrengthWarningLevel(30);
-    dlg.setPrompt(i18n("Enter a password for the test"));
+    dlg.setPrompt(QApplication::translate("main", "Enter a password for th=
e test"));
 =

-    if( dlg.exec() )
-    {
-        std::cout << "Entered password: " << (const char*)dlg.password().t=
oLatin1() << std::endl;
+    if (dlg.exec()) {
+        std::cout << "Entered password: " << qPrintable(dlg.password()) <<=
 std::endl;
         return 0;
-    }
-    else
-    {
+    } else {
         std::cout << "No password" << std::endl;
         return -1;
     }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic