SVN: toys/kernelupdatenotifier/kernelupdatenotifier.cpp

shadzik shadzik at pld-linux.org
Wed Aug 18 01:57:50 CEST 2010


Author: shadzik
Date: Wed Aug 18 01:57:49 2010
New Revision: 11786

Modified:
   toys/kernelupdatenotifier/kernelupdatenotifier.cpp
Log:
- updated a bit for 4.5.0


Modified: toys/kernelupdatenotifier/kernelupdatenotifier.cpp
==============================================================================
--- toys/kernelupdatenotifier/kernelupdatenotifier.cpp	(original)
+++ toys/kernelupdatenotifier/kernelupdatenotifier.cpp	Wed Aug 18 01:57:49 2010
@@ -10,12 +10,15 @@
 #include <QApplication>
 #include <QObject>
 #include <QProcess>
+#include <QTextDocument>
+#include <QPixmap>
 
 #include <knotification.h>
 #include <klocale.h>
 #include <kdebug.h>
 #include <qdebug.h>
 #include <kworkspace/kworkspace.h>
+#include <KStandardDirs>
 
 #include "kernelupdatenotifier.h"
 
@@ -38,7 +41,7 @@
 
 void KernelUpdateNotifier::handleRebootActionClosed()
 {
-	kDebug("Don't Reboot");
+	kDebug() << "Don't Reboot";
 	QApplication::quit();
 }
 
@@ -47,9 +50,9 @@
 	KNotification *notify = new KNotification("KernelWasUpgraded", 0, KNotification::Persistent);
 
 	QString text;
-	text =  i18n("The Kernel was upgraded to version:") + "<br/>";
-	text += "<b>" + version + "</b><br/>";
-	text += i18n("Please reboot the machine.");
+	text =  i18n("The Kernel was upgraded to version\n");
+	text += version + "\n";
+	text += i18n("Please reboot the machine.\n");
 	notify->setText(text);
 
 	QStringList actions;


More information about the pld-cvs-commit mailing list